Merrill Friesen wrote:
I am using WinAVR-20050214 (avr-libc 1.2.3) and get the following warning when compiling for the atmega8 MCU:
c:/winavr/avr/include/avr/interrupt.h:117:1: warning: "__EICR" redefined c:/winavr/avr/include/avr/interrupt.h:114:1: warning: this is the location of the previous definition
I believe this is because <iom8.h> defines: <snip> #define GIMSK _SFR_IO8(0x3B) #define GICR _SFR_IO8(0x3B) /* Changed in 2486H-AVR-09/02 */ </snip>
And <interrupt.h> assumes that only one of these is defined: <snip> /* Define common register definition if available. */ #if defined(EIMSK) #define __EICR EIMSK #endif #if defined(GIMSK) #define __EICR GIMSK #endif #if defined(GICR) #define __EICR GICR #endif </snip>
Good catch! Thanks for finding this!
I searched avr-libc bugs, tasks, and patches (I have been gettingAll of the GNU project's mailing list archives are having problems recently, including on Savannah.
connection refused errors trying to access the mailing list archives
for a day or more) and haven't found anything related to this issue.
I can easily work around it by commenting out the definition of GIMSK
in <iom8.h>, but I figure someone else will encounter this as well and
it should be fixed in the appropriate manner (I don't know what that
is).
Would you be willing to fill out a bug tracker on the avr-libc project on this? That way it won't get lost. Thanks!
Eric
_______________________________________________ AVR-libc-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-libc-dev
