AVR 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: |
Eric Weddington <arcanum> |
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.
|
Jan Waclawek <wek> |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-07-16 | arcanum | Fixed Release | 1.6.4 | 1.6.3 | |
2009-07-14 | arcanum | Percent Complete | 30% | 100% | |
Open/Closed | Open | Closed | |||
Fixed Release | None | 1.6.4 | |||
2009-07-14 | arcanum | Percent Complete | 0% | 30% | |
Assigned to | None | arcanum | |||
2009-06-24 | wek | Attached File | - | Added fuse.h.patch, #18314 |
Powered by Savane 3.13-d3ae.
Corresponding source code
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>.