bugAVR C Runtime Library - Bugs: bug #11714, EEAR problem with atmega48 in io.h

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11714: EEAR problem with atmega48 in io.h

Submitter:  None
Submitted:  Mon 24 Jan 2005 09:26:17 AM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Invalid Assigned to:  arcanum
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Tue 25 Jan 2005 07:54:35 PM UTC, comment #1: 

The <avr/io.h> header file #defines EEAR as 0x1E, and then later it includes the device specific header file <iom48.h>, this header then includes <avr/iomx8.h>. In the iomx8.h header file EEAR is undefined (#undef) and then redefined with the correct address and the correct width.

This bug is invalid.

Eric Weddington <arcanum>
Group administrator
Mon 24 Jan 2005 09:26:17 AM UTC, original submission:  

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

Anonymous

 

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

Attached Files
file #2410:  io.h added by None (9KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by joerg_wunsch (Updated the item)
  •  

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-10-22 joerg_wunsch PrivacyPrivate Public
    2005-01-25 arcanum StatusNone Invalid
        Open/ClosedOpen Closed
    2005-01-25 arcanum Assigned toNone arcanum
    2005-01-24 None Attached File- Added io.h, #2104

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code