URL:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12993>
Summary: "__EICR" redefined warning ATmega8
Project: AVR C Runtime Library
Submitted by: None
Submitted on: Thu 05/05/2005 at 16:06
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Originator Email: [EMAIL PROTECTED]
Open/Closed: Open
_______________________________________________________
Details:
Using WinAVR-20050214 (avr-libc 1.2.3) the following warning occurs 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>
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
merrill_friesen --AT-- yahoo --DOT-- com | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12993>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev