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

 
 

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

Submitted by:  None
Submitted on:  Mon 24 Jan 2005 09:26:17 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPercent Complete: 0%
Assigned to: Eric Weddington <arcanum>Originator 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.

 

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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by joerg_wunsch (Updated the item)
  •  

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

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 22 Oct 2007 10:42:31 AM UTCjoerg_wunschPrivacyPrivate=>Public
    Tue 25 Jan 2005 07:54:35 PM UTCarcanumStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 25 Jan 2005 07:51:13 PM UTCarcanumAssigned toNone=>arcanum
    Mon 24 Jan 2005 09:26:17 AM UTCNoneAttached File-=>Added io.h, #2104

    Back to the top


    Powered by Savane 3.1-cleanup1