|
From: | anonymous |
Subject: | [avr-libc-dev] [bugs #11714] EEAR problem with atmega48 in io.h |
Date: | Mon, 24 Jan 2005 09:26:17 +0000 |
User-agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) |
URL: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=11714> Summary: EEAR problem with atmega48 in io.h Project: AVR C Runtime Library Submitted by: None Submitted on: Mon 01/24/05 at 04:26 Category: Header Severity: 5 - Average Priority: 5 - Normal Item Group: None Status: None Privacy: Private Percent Complete: 0% Assigned to: None Originator Email: address@hidden Open/Closed: Open _______________________________________________________ Details: because atmega48 E2END is 0xff in IO.h E2END < 0x100 will define # if E2END > 0 # define EEAR _SFR_IO8(0x1E) # endif so complier result EEAR is _SFR_IO8(0x1E) but atmega48 EEAR is SFR_IO16(0x21) true not _SFR_IO8(0x1E). So i add && !defined(__COMPILING_AVR_LIBC__) && !defined in io.h. //add && !defined(__AVR_ATmega48__) by tom.zhang 2005.1.23 #if E2END < 0x100 && !defined(__COMPILING_AVR_LIBC__) && !defined(__AVR_ATmega48__) # undef EEAR # if E2END > 0 # define EEAR _SFR_IO8(0x1E) # endif # undef EEARH #endif _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Mon 01/24/05 at 04:26 Name: io.h Size: 9.04KB By: None <http://savannah.nongnu.org/bugs/download.php?item_id=11714&item_file_id=2104> _______________________________________________________ This item URL is: <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=11714> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |