AVR C Runtime Library - Bugs: bug #45151, #define _ASM_SFR_COMPAT 1 and...
You are not allowed to post comments on this tracker with your current authentication level.
bug #45151: #define _ASM_SFR_COMPAT 1 and #include <avr/power.h> results in build error
Submitter: | None | ||
Submitted: | Wed 20 May 2015 02:49:05 PM UTC | ||
Category: | Header | Severity: | 3 - Normal |
Priority: | 5 - Normal | Item Group: | None |
Status: | None | Assigned to: | None |
Percent Complete: | 0% | Originator Email: | -email is unavailable- |
Open/Closed: | Open | Release: | 1.8.0 |
Fixed Release: | None |
Thu 21 May 2015 01:31:16 PM UTC, comment #1: |
Pitchumani <pitchumani> |
Wed 20 May 2015 02:49:05 PM UTC, original submission:
Note: release field is incorrect, but there isnt one for newest svn.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Powered by Savane 3.13-758e.
Corresponding source code
If _SFR_ASM_COMPAT is defined, you can't use any of the macros/ functions from power.h. Now __power_all_enable/disable are modified as inline function, so those functions are expanded where power.h is included and caused these errors.
Possible solution maybe to include power.h conditionally (if not _SFR_ASM_COMPAT)