avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #45151] #define _ASM_SFR_COMPAT 1 and #include <avr/


From: Pitchumani
Subject: [avr-libc-dev] [bug #45151] #define _ASM_SFR_COMPAT 1 and #include <avr/power.h> results in build error
Date: Thu, 21 May 2015 13:31:17 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.65 Safari/537.36

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

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)

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]