bugAVR C Runtime Library - Bugs: bug #26876, include io.h into fuse.h

 
 

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

bug #26876: include io.h into fuse.h

Submitter:  Jan Waclawek <wek>
Submitted:  Wed 24 Jun 2009 01:41:31 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Header files
Status:  None Assigned to:  arcanum
Percent Complete:  100% Open/Closed:  Closed
Release:  1.6.1 Fixed Release:  1.6.3

Tue 14 Jul 2009 05:26:59 PM UTC, comment #1: 

This is fixed, but in a different way. The avr-libc user manual explicitly states that fuse.h is included by <avr/io.h> and that the user should include that file, and not <avr/fuse.h> directly.

The fix now produces an #error if <avr/fuse.h> is called explicitly before <avr/io.h>.

Eric Weddington <arcanum>
Group administrator
Wed 24 Jun 2009 01:41:31 PM UTC, original submission:  

In <avr/fuse.h>, the __fuse_t struct is defined conditionally based on value of FUSE_MEMORY_SIZE symbol being 1, 2, 3 or above. This symbol is defined by #including <avr/io.h>. However, if fuse.h is #included before io.h, this symbol is undefined, which may lead to an error confusing for the user, typically at the place where the FUSES macro is used.

The fix is trivial - #including <avr/io.h> in fuse.h; but to help this fix to be accepted, I did provide a patch... ;-)

Jan Waclawek

Jan Waclawek <wek>

 

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

Attached Files
file #18314:  fuse.h.patch added by wek (179B - 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 arcanum (Updated the item)
  • -email is unavailable- added by wek (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-07-16 arcanum Fixed Release1.6.4 1.6.3
    2009-07-14 arcanum Percent Complete30% 100%
        Open/ClosedOpen Closed
        Fixed ReleaseNone 1.6.4
    2009-07-14 arcanum Percent Complete0% 30%
        Assigned toNone arcanum
    2009-06-24 wek Attached File- Added fuse.h.patch, #18314

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code