[Top][All Lists]

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

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

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

No problem!

I've been using avr-gcc, etc. and lurking on this list for a few
months.    Maybe in a few more months I'll be ready to help with fixing
bugs instead of just finding them.  Thanks to everyone for the great
work, keep it up!
--- "E. Weddington" <address@hidden> wrote:
> 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 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
> >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

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

reply via email to

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