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

 
 

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

Submitted by:  Jan Waclawek <wek>
Submitted on:  Wed 24 Jun 2009 01:41:31 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: NonePercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Open/Closed: Closed
Release: 1.6.1Fixed Release: 1.6.3

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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

Attach File(s):
   
   
Comment:
   

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

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

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Jul 2009 12:56:33 AM UTCarcanumFixed Release1.6.4=>1.6.3
    Tue 14 Jul 2009 05:26:59 PM UTCarcanumPercent Complete30%=>100%
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.6.4
    Tue 14 Jul 2009 04:57:57 PM UTCarcanumPercent Complete0%=>30%
      Assigned toNone=>arcanum
    Wed 24 Jun 2009 01:41:31 PM UTCwekAttached File-=>Added fuse.h.patch, #18314

    Back to the top


    Powered by Savane 3.1-cleanup1