[Top][All Lists]

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

[avr-libc-dev] [bug #12993] "__EICR" redefined warning ATmega8

From: anonymous
Subject: [avr-libc-dev] [bug #12993] "__EICR" redefined warning ATmega8
Date: Thu, 5 May 2005 20:06:40 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3


                 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: address@hidden
             Open/Closed: Open



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:
#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


Carbon-Copy List:

CC Address                          | Comment
merrill_friesen --AT-- yahoo --DOT-- com | Originator Email


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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