<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6774" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-07-10T23:29:54+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6774</id>

		<entry>
		<author><name><![CDATA[asd123zxc]]></name></author>
		<updated>2012-07-10T23:29:54+02:00</updated>

		<published>2012-07-10T23:29:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21987#p21987</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21987#p21987"/>
		<title type="html"><![CDATA[Re: atmel studio 6 and v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21987#p21987"><![CDATA[
i created a new project and copied every thing to project folder and included only usbdrv.c not usbdrv.h and now build succeed ??<br />now my question is that what happen if i don't include usbdrv.h??<br />please help me<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6991">asd123zxc</a> — Tue Jul 10, 2012 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asd123zxc]]></name></author>
		<updated>2012-07-10T21:43:01+02:00</updated>

		<published>2012-07-10T21:43:01+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21985#p21985</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21985#p21985"/>
		<title type="html"><![CDATA[Re: atmel studio 6 and v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21985#p21985"><![CDATA[
i included usbdrv.h usbdrv.c and added usbdrvasm.s to project and now :<br />error : invalid conversion from 'void*' to 'usbRequest_t* {aka usbRequest*}' [-fpermissive]<br />what is the problem?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6991">asd123zxc</a> — Tue Jul 10, 2012 9:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[asd123zxc]]></name></author>
		<updated>2012-07-08T23:17:20+02:00</updated>

		<published>2012-07-08T23:17:20+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21980#p21980</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21980#p21980"/>
		<title type="html"><![CDATA[atmel studio 6 and v-usb]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6774&amp;p=21980#p21980"><![CDATA[
hi<br />i want to use atmel studio 6 to compile v-usb project.<br /><br />i created a new project &gt; gcc c executable project<br />device &gt; atmega8a<br /><br />and here is my code<br /><div class="codebox"><p>Code: </p><pre><code>#define F_CPU 12000000 <br /><br />#include &lt;avr/io.h&gt;<br />#include &quot;usbdrv.h&quot;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/wdt.h&gt;<br /><br /><br />#include &lt;util/delay.h&gt;<br />#define USB_LED_OFF 0<br />#define USB_LED_ON  1<br /><br />USB_PUBLIC uchar usbFunctionSetup(uchar data&#91;8&#93;) <br />{<br />    return 0; // should not get here<br />}<br /><br /><br />int main() {<br />   DDRB = 0xff;<br />   PORTB = 0xff;<br />   uchar i;<br /><br />   wdt_enable(WDTO_1S); // enable 1s watchdog timer<br /><br />   usbInit();<br />   usbDeviceDisconnect(); // enforce re-enumeration<br />   for(i = 0; i&lt;250; i++) <br />   { // wait 500 ms<br />      wdt_reset(); // keep the watchdog happy<br />      _delay_ms(2);<br />   }<br />usbDeviceConnect();<br /><br />sei(); // Enable interrupts after re-enumeration<br /><br />while(1) <br />{<br />   wdt_reset(); // keep the watchdog happy<br />   usbPoll();<br />}<br /><br />return 0;<br />}<br /><br /></code></pre></div><br /> <br />when i compile &gt; error : <br />undefined reference `usbinit();'<br />undefined reference `usbpoll();'<br />undefined reference `usbInputBufOffset'<br />and ....<br /><br /><br />what is the problem?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6991">asd123zxc</a> — Sun Jul 08, 2012 11:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
