Error during compilation
Posted: Thu Oct 04, 2007 4:05 pm
Hi,
When I'm compiling (with gcc 4.1.2) the firmware of the PowerSwitch project, I got this error:
usbdrv/usbdrv.c: In function `usbInit':
usbdrv/usbdrv.c:538: invalid lvalue in assignment
usbdrv/usbdrv.c:543: invalid lvalue in assignment
The compiler is referring to the lines in usbdrv.c:
USB_INTR_CFG |= USB_INTR_CFG_SET;
and
USB_INTR_ENABLE |= (1 << USB_INTR_ENABLE_BIT);
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.
Can anyone help me with this one?
Greets,
Dré.
When I'm compiling (with gcc 4.1.2) the firmware of the PowerSwitch project, I got this error:
usbdrv/usbdrv.c: In function `usbInit':
usbdrv/usbdrv.c:538: invalid lvalue in assignment
usbdrv/usbdrv.c:543: invalid lvalue in assignment
The compiler is referring to the lines in usbdrv.c:
USB_INTR_CFG |= USB_INTR_CFG_SET;
and
USB_INTR_ENABLE |= (1 << USB_INTR_ENABLE_BIT);
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.
Can anyone help me with this one?
Greets,
Dré.