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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2011-05-22T23:34:40+02:00</updated>

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

		<entry>
		<author><name><![CDATA[jamesotron]]></name></author>
		<updated>2011-05-22T23:34:40+02:00</updated>

		<published>2011-05-22T23:34:40+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18536#p18536</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18536#p18536"/>
		<title type="html"><![CDATA[Re: Hiding V-USB inside an Arduino library.]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18536#p18536"><![CDATA[
Thanks. Yes, that's what I wound up doing.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5246">jamesotron</a> — Sun May 22, 2011 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Daid]]></name></author>
		<updated>2011-05-16T18:07:46+02:00</updated>

		<published>2011-05-16T18:07:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18474#p18474</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18474#p18474"/>
		<title type="html"><![CDATA[Re: Hiding V-USB inside an Arduino library.]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18474#p18474"><![CDATA[
First, you are using an Arduino, with the Arduino library. Which is like putting a 2 stroke engine in a Ferrari.<br /><br />Secondly, you are mixing C and C++. You'll need to add <div class="codebox"><p>Code: </p><pre><code>extern &quot;C&quot; {</code></pre></div> around the C header files.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5154">Daid</a> — Mon May 16, 2011 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesotron]]></name></author>
		<updated>2011-05-13T02:17:30+02:00</updated>

		<published>2011-05-13T02:17:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18464#p18464</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18464#p18464"/>
		<title type="html"><![CDATA[Hiding V-USB inside an Arduino library.]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=5682&amp;p=18464#p18464"><![CDATA[
Hi there.<br /><br />I'm working on a device where I would like the user to be able to configure their device by way of a sketch in the Arduino IDE.  I have an Arduino library which includes all the usbdrv code. I have managed to clean up all the compile warnings and errors and I have one last remaining error which is bugging my brain out:<br /><br /><div class="codebox"><p>Code: </p><pre><code>AxeIo/axeio.cpp.o: In function `controllerInit()':<br />/Users/jnh/Documents/Arduino/libraries/AxeIo/axeio.cpp:568: undefined reference to `usbInit()'<br /></code></pre></div><br /><br />so axeio.h/cpp is my Arduino library, from the sketch's setup() method controllerInit() is called which in turn calls:<br /><br /><div class="codebox"><p>Code: </p><pre><code>void controllerInit() {<br />  blinkinatorSetup();<br /><br />  wdt_enable(WDTO_1S);<br />  hardwareInit();<br /><br />  odDebugInit();<br />  usbInit();<br /><br />  sei();<br />}</code></pre></div><br /><br />Interesting that it doesn't complain about odDebugInit, just usbInit.  Does anyone have any ideas of where I've gone wrong?<br /><br />The complete code can be seen here: <!-- m --><a class="postlink" href="https://github.com/axeio/thinkinator_firmware/tree/vusb-integration/lib">https://github.com/axeio/thinkinator_fi ... ration/lib</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5246">jamesotron</a> — Fri May 13, 2011 2:17 am</p><hr />
]]></content>
	</entry>
	</feed>
