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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-12-27T20:18:50+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-12-27T20:18:50+02:00</updated>

		<published>2007-12-27T20:18:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3633#p3633</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3633#p3633"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3633#p3633"><![CDATA[
At least you have a solution. If somebody suggests a way how the #if can be made compatible with both, GCC/avr-libc and IAR-CC, I'd be happy to add it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Dec 27, 2007 8:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[icefire]]></name></author>
		<updated>2007-12-27T06:21:48+02:00</updated>

		<published>2007-12-27T06:21:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3626#p3626</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3626#p3626"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3626#p3626"><![CDATA[
It is no use , even if i define the USB_INTR_PENDING, the warning also exist.<br /><br />I use the lazy way to solve this: <br /><br />// #if USB_INTR_PENDING &lt; 0x40 /* This is an I/O address, use in and out */<br />#   define  USB_LOAD_PENDING(reg)   in reg, USB_INTR_PENDING<br />#   define  USB_STORE_PENDING(reg)  out USB_INTR_PENDING, reg<br />// #else   /* It's a memory address, use lds and sts */<br />// #   define  USB_LOAD_PENDING(reg)   lds reg, USB_INTR_PENDING<br />// #   define  USB_STORE_PENDING(reg)  sts USB_INTR_PENDING, reg<br />// #endif  <img class="smilies" src="./../../../images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=675">icefire</a> — Thu Dec 27, 2007 6:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[icefire]]></name></author>
		<updated>2007-12-27T05:28:22+02:00</updated>

		<published>2007-12-27T05:28:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3624#p3624</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3624#p3624"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3624#p3624"><![CDATA[
Thank you christian.<br /><br /><br />I am sure i have never change any #if/#endif structure, my change is so simple:<br />// #warning &quot;You should define USB_CFG_VENDOR_ID and USB_CFG_DEVICE_ID in usbconfig.h&quot;<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=675">icefire</a> — Thu Dec 27, 2007 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-12-26T21:01:21+02:00</updated>

		<published>2007-12-26T21:01:21+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3617#p3617</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3617#p3617"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3617#p3617"><![CDATA[
Thanks for your feedback about the current status of IAR compatibility!<br /><br />I have added your .macro and .endm fix for the next release.<br /><br />Please define USB_INTR_PENDING to the appropriate register or memory address in usbconfig.h. The default is EIFR or GIFR in usbdrv.h, but these constants may not be defined at the time we check for them, or they may be defined in an unexpected way (not as numeric constant). With this fix, you should get rid of the warning in line 87 of usbdrvasm.S.<br /><br />But I can't see where an #endif could be missing. Maybe this is a consequence of the line 87 warning. Or it's the #error preprocessor command at the end of usbdrvasm.S. Did you remove it? And did you make sure that you have not changed the #if/#endif structure where you removed #warning or #error commands?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Dec 26, 2007 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[icefire]]></name></author>
		<updated>2007-12-24T13:06:52+02:00</updated>

		<published>2007-12-24T13:06:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3605#p3605</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3605#p3605"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3605#p3605"><![CDATA[
after removed the redefine macro usbDeviceConnect and usbDeviceDisconnect  in options.h , removed the #warning... in usbdrv.h,<br />changed .macro to macro .endm to endm and then...<br />only one error last:<br /><br />Building configuration: rcu - Release <br />Updating build tree... <br /> <br />33  file(s) deleted. <br />Updating build tree... <br />in_adc.c <br />usbdrv.c <br />Warning[Pe177]: variable &quot;recipient&quot; was declared but never referenced E:\mcu projects\test\source\usbdrv\usbdrv.c 342 <br />in_ppm_adv.c <br />out_joystick.c <br />out_joystick_btn.c <br />in_ppm.c <br />main.c <br />out_reflex.c <br />usbdrvasm.asm <br />Warning[16]: Suspicious sfr expression E:\mcu projects\test\source\usbdrv\usbdrvasm.S 87 <br />Error[14]: Missing #endif E:\mcu projects\test\source\usbdrv\usbdrvasm.asm 21 <br /> <br />Total number of errors: 1 <br />Total number of warnings: 2<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=675">icefire</a> — Mon Dec 24, 2007 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[icefire]]></name></author>
		<updated>2007-12-24T12:59:28+02:00</updated>

		<published>2007-12-24T12:59:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3604#p3604</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3604#p3604"/>
		<title type="html"><![CDATA[IAR AVR build error with new usbdrv lib 2007-12-01]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1066&amp;p=3604#p3604"><![CDATA[
I try to build ppm RC to usb interface with the new released usbdrv 2007-12-01 and get following errors:<br /><br />Building configuration: rcu - Release <br />Updating build tree... <br /> <br />36  file(s) deleted. <br />Updating build tree... <br />in_adc.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />out_joystick.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />usbdrv.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />Warning[Pe177]: variable &quot;recipient&quot; was declared but never referenced E:\mcu projects\test\source\usbdrv\usbdrv.c 342 <br />in_ppm.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />in_ppm_adv.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />main.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />out_joystick_btn.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />out_reflex.c <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceConnect&quot; (declared at line 79 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 274 <br />Warning[Pe047]: incompatible redefinition of macro &quot;usbDeviceDisconnect&quot; (declared at line 80 of &quot;E:\mcu projects\test\source\options.h&quot;) E:\mcu projects\test\source\usbdrv\usbdrv.h 276 <br />usbdrvasm.asm <br />Error[18]: No such pre-processor command: 'warning' E:\mcu projects\test\source\usbdrv\usbdrv.h 471 <br />Warning[16]: Suspicious sfr expression E:\mcu projects\test\source\usbdrv\usbdrvasm.S 87 <br />Error[41]: Bad label E:\mcu projects\test\source\usbdrv\usbdrvasm12.S 246 <br />Error[14]: Missing #endif E:\mcu projects\test\source\usbdrv\usbdrvasm.asm 21 <br /> <br />Total number of errors: 3 <br />Total number of warnings: 18<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=675">icefire</a> — Mon Dec 24, 2007 12:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
