avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] "__EICR" redefined warning atmega8


From: Merrill Friesen
Subject: [avr-libc-dev] "__EICR" redefined warning atmega8
Date: Thu, 5 May 2005 06:35:42 -0700 (PDT)

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>

I searched avr-libc bugs, tasks, and patches (I have been getting
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).

Merrill


                
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]