bugAVR C Runtime Library - Bugs: bug #27425, Definition of SREG is missing in...

 
 

bug #27425: Definition of SREG is missing in iom128.h

Submitted by:  Oliver Regenfelder <oliver>
Submitted on:  Fri 11 Sep 2009 12:37:04 PM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: InvalidPercent Complete: 0%
Assigned to: NoneOpen/Closed: Closed
Release: 1.6.7Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 12 Sep 2009 12:45:38 PM UTC, comment #3:

Ok. Thanks for the clarification. Basically I am including <avr/io.h> always. So it looks like I forgot to include it somewhere (will check with the code on monday).

Yours

Oliver

Oliver Regenfelder <oliver>
Sat 12 Sep 2009 05:21:50 AM UTC, comment #2:

As Stefan wrote, this is a usage error.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 11 Sep 2009 06:23:50 PM UTC, comment #1:

Don't include iom128.h directly. You should include io.h instead. That includes (besides iom128.h) common.h, where the definition of SREG is in.

Stefan Ernst <sternst>
Fri 11 Sep 2009 12:37:04 PM UTC, original submission:

Hello,

The definition of SREG is missing (at least) form the iom128.h
headerfile. Its address is mentioned in a comment but no
#define is there

proposed solution:
add
#define SREG _SFR_IO8(0x3F)
to iom128.h

lg

Oliver

Oliver Regenfelder <oliver>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by sternst (Posted a comment)
  • -unavailable- added by oliver (Submitted the item)
  •  

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

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Sep 2009 05:21:50 AM UTCjoerg_wunschStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1