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

 
 

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

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

Submitter:  Oliver Regenfelder <oliver>
Submitted:  Fri 11 Sep 2009 12:37:04 PM UTC
   
 
Category:  Header Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  Invalid Assigned to:  None
Percent Complete:  0% Open/Closed:  Closed
Release:  1.6.7 Fixed Release:  None

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>
Group 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.)

No files currently attached

 

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 (Posted a comment)
  • -email is unavailable- added by sternst (Posted a comment)
  • -email is unavailable- added by oliver (Submitted the item)
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-12 joerg_wunsch StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code