bugAVR C Runtime Library - Bugs: bug #12993, "__EICR" redefined...

 
 

bug #12993: "__EICR" redefined warning ATmega8

Submitted by:  None
Submitted on:  Thu 05 May 2005 08:06:37 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 05 May 2005 08:06:37 PM UTC, original submission:

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>

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 25 Jun 2005 10:54:13 PM UTCaesokStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 05 May 2005 08:06:37 PM UTCNoneCarbon-Copy-=>Added merrill_friesen --AT-- yahoo --DOT-- com

Back to the top


Powered by Savane 3.1-cleanup1