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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-07-21T23:02:04+02:00</updated>

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

		<entry>
		<author><name><![CDATA[laurentppol]]></name></author>
		<updated>2010-07-21T23:02:04+02:00</updated>

		<published>2010-07-21T23:02:04+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4658&amp;p=15289#p15289</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4658&amp;p=15289#p15289"/>
		<title type="html"><![CDATA[Multiple time declarations (newbie)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4658&amp;p=15289#p15289"><![CDATA[
Hi, sample projects on this site seems to follow thi schema in directory design:<br /><br />/circuit<br />/firmware (with subdir /usbdrv)<br />/&quot;application&quot;.<br /><br />After looking inside (PowerSwitch) sources I realized that there are declarations (#defines) that are (almost - but they define the SAME) the same in TWO places: /firmware/usbconfig.h AND in &quot;application&quot; main. Having the SAME thing TWICE seems error-prone. <br /><br />Would it be possible to &quot;export&quot; common definitions (VID, PID, product/vendor strings, command definitions) to some *.h file located in &quot;root&quot; of project? And then include (with needed byte/character swapping) into /firmware/usbdrv.h (or /usbdrv.c?) and main.c in application directory?<br /><br />One point less for errors....<br /><br />W.P.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4149">laurentppol</a> — Wed Jul 21, 2010 11:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
