|
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 |
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: address@hidden 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/
[Prev in Thread] | Current Thread | [Next in Thread] |