<?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/7047" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-10-04T13:22:08+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2012-10-04T13:22:08+02:00</updated>

		<published>2012-10-04T13:22:08+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22899#p22899</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22899#p22899"/>
		<title type="html"><![CDATA[Re: Using V-USB on ATMEGA328P with Arduino]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22899#p22899"><![CDATA[
<!-- m --><a class="postlink" href="http://code.google.com/p/vusb-for-arduino/">http://code.google.com/p/vusb-for-arduino/</a><!-- m --> is what you are looking for<p>Statistics: Posted by Guest — Thu Oct 04, 2012 1:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Peter Chaffe]]></name></author>
		<updated>2012-10-03T23:56:32+02:00</updated>

		<published>2012-10-03T23:56:32+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22895#p22895</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22895#p22895"/>
		<title type="html"><![CDATA[Re: Using V-USB on ATMEGA328P with Arduino]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22895#p22895"><![CDATA[
the c language of arduino c is not the same as the c language of avr. Your going to need to screw around a lot with the code(not recommended) or Use a real programming environment like avr studio for instance, You will find it compiles no trouble...<br /><br />Peter<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6086">Peter Chaffe</a> — Wed Oct 03, 2012 11:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-09-21T13:01:13+02:00</updated>

		<published>2012-09-21T13:01:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22741#p22741</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22741#p22741"/>
		<title type="html"><![CDATA[Re: Using V-USB on ATMEGA328P with Arduino]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22741#p22741"><![CDATA[
Have you put the usbconfig.c in the make? Can you show us your make file.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Sep 21, 2012 1:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tytower]]></name></author>
		<updated>2012-09-19T23:23:05+02:00</updated>

		<published>2012-09-19T23:23:05+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22710#p22710</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22710#p22710"/>
		<title type="html"><![CDATA[Using V-USB on ATMEGA328P with Arduino]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7047&amp;p=22710#p22710"><![CDATA[
I'm trying to use V-USB in a &quot;C&quot; program with the Arduino IDE programming an atmega328p and although I have the V-USB downloaded and have put the &quot;vusbdrv&quot; folder complete in the libraries section of my arduino sketchbook . All the &quot;.h and .c&quot; files are available there as is &quot;usbconfig.h&quot; it does not seem to be able to get and use the functions? I get this error message on compile<br /><br />VUSBExample1.cpp.o: In function `main':<br />VUSBExample1.cpp:22: undefined reference to `usbInit()'<br />VUSBExample1.cpp:35: undefined reference to `usbPoll()'<br /><br />I have spent a lot of time reading through V-USB documentation and cannot see why it should not work with the Arduino IDE<br />Does anybody have any knowledge of using V-USB with the Arduino IDE ?  I use Arduino Version 1.0.1 to program the chip<br /><br />Here is the code I am trying to compile<br /><div class="codebox"><p>Code: </p><pre><code>#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/wdt.h&gt;<br /><br />#include &quot;usbdrv.h&quot;<br /><br />#define F_CPU 16000000L<br />#include &lt;util/delay.h&gt;<br /><br />USB_PUBLIC uchar usbFunctionSetup(uchar data&#91;8&#93;) {<br />        return 0; // do nothing for now<br />}<br /><br />int main() {<br />        uchar i;<br /><br />    wdt_enable(WDTO_1S); // enable 1s watchdog timer<br /><br />    usbInit();<br />        <br />    usbDeviceDisconnect(); // enforce re-enumeration<br />    for(i = 0; i&lt;250; i++) { // 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 />        wdt_reset(); // keep the watchdog happy<br />        usbPoll();<br />    }<br />        <br />    return 0;<br />}</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=7375">tytower</a> — Wed Sep 19, 2012 11:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
