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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by INVALID.NOREPLY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.nongnu.org/bugs/?27425>

                 Summary: Definition of SREG is missing in iom128.h
                 Project: AVR C Runtime Library
            Submitted by: oliver
            Submitted on: Fr 11 Sep 2009 12:37:04 GMT
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.6.7
           Fixed Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27425>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

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

by INVALID.NOREPLY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #1, bug #27425 (project avr-libc):

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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27425>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

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

by INVALID.NOREPLY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Update of bug #27425 (project avr-libc):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #2:

As Stefan wrote, this is a usage error.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27425>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

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

by INVALID.NOREPLY :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #3, bug #27425 (project avr-libc):

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


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27425>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@...
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev