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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2007-10-07T21:24:03+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2007-10-07T21:24:03+02:00</updated>

		<published>2007-10-07T21:24:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=812&amp;p=2634#p2634</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=812&amp;p=2634#p2634"/>
		<title type="html"><![CDATA[Error during compilation]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=812&amp;p=2634#p2634"><![CDATA[
The error messages says that the macros USB_INTR_CFG and USB_INTR_ENABLE expand to invalid left-hand values for an assignment.<br /><br />These macros are defined in usbdrv.h to MCUCR and GIMSK (or similar registers). You may override these values in usbconfig.h, though.<br /><br />Please run your code through the preprocessor only (gcc option '-E') to see the expansion of the macros. Maybe your avr-libc is not installed correctly and the register macros don't work as they should.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sun Oct 07, 2007 9:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[langsweirdt]]></name></author>
		<updated>2007-10-04T16:05:17+02:00</updated>

		<published>2007-10-04T16:05:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=812&amp;p=2617#p2617</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=812&amp;p=2617#p2617"/>
		<title type="html"><![CDATA[Error during compilation]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=812&amp;p=2617#p2617"><![CDATA[
Hi,<br /><br />When I'm compiling (with gcc 4.1.2) the firmware of the PowerSwitch project, I got this error:<br /><br />usbdrv/usbdrv.c: In function `usbInit':<br />usbdrv/usbdrv.c:538: invalid lvalue in assignment<br />usbdrv/usbdrv.c:543: invalid lvalue in assignment<br /><br />The compiler is referring to the lines in usbdrv.c:<br />USB_INTR_CFG |= USB_INTR_CFG_SET;<br />and<br />USB_INTR_ENABLE |= (1 &lt;&lt; USB_INTR_ENABLE_BIT);<br /><br />I've noticed that this is an error that can occur by upgrading form gcc 3 to gcc 4. But I don't know how I have to change these lines to correct it.<br />Can anyone help me with this one?<br /><br />Greets,<br />Dré.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=486">langsweirdt</a> — Thu Oct 04, 2007 4:05 pm</p><hr />
]]></content>
	</entry>
	</feed>
