[Top][All Lists]

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

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

From: E. Weddington
Subject: Re: [avr-libc-dev] "__EICR" redefined warning atmega8
Date: Thu, 05 May 2005 13:54:17 -0600
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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"
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:
#define GIMSK   _SFR_IO8(0x3B)
#define GICR    _SFR_IO8(0x3B)   /* Changed in 2486H-AVR-09/02 */

And <interrupt.h> assumes that only one of these is defined:
/* Define common register definition if available. */
#if defined(EIMSK)
#define __EICR  EIMSK
#if defined(GIMSK)
#define __EICR  GIMSK
#if defined(GICR)
#define __EICR  GICR

Good catch! Thanks for finding this!

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.
All of the GNU project's mailing list archives are having problems recently, including on Savannah.

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

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!


reply via email to

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