URL:
<http://savannah.nongnu.org/bugs/?35197>
Summary: sleep.h _BV defined as __BV in AT90S8515 section
Project: AVR C Runtime Library
Submitted by: bingo
Submitted on: Fri 30 Dec 2011 10:56:47 AM CET
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: libc code
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.7.1
Fixed Release: None
_______________________________________________________
Details:
In avr/sleep.h , below section , at line 209.
_BV is defined as __BV (double underscore)
#elif defined(__AVR_AT90S2313__) \
|| defined(__AVR_AT90S2323__) \
|| defined(__AVR_AT90S2333__) \
|| defined(__AVR_AT90S2343__) \
|| defined(__AVR_AT43USB320__) \
|| defined(__AVR_AT43USB355__) \
|| defined(__AVR_AT90S4414__) \
|| defined(__AVR_AT90S4433__) \
|| defined(__AVR_AT90S8515__) \
|| defined(__AVR_ATtiny22__)
#define SLEEP_MODE_IDLE 0
#define SLEEP_MODE_PWR_DOWN _BV(SM)
#define set_sleep_mode(mode) \
do { \
_SLEEP_CONTROL_REG = ((_SLEEP_CONTROL_REG & ~__BV(SM)) | (mode)); \
} while(0)
The __BV results in errors like this:
elm-chan/utctime/stime/test2.c:134: undefined
reference to `__BV'
collect2: ld returned 1 exit status
make: *** [test2.elf] Error 1
/Bingo
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?35197>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-libc-dev