[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #35197] sleep.h _BV defined as __BV in AT90S8515 sec
From: |
Bingo |
Subject: |
[avr-libc-dev] [bug #35197] sleep.h _BV defined as __BV in AT90S8515 section |
Date: |
Fri, 30 Dec 2011 09:56:48 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.04 (lucid) Firefox/3.6.24 |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #35197] sleep.h _BV defined as __BV in AT90S8515 section,
Bingo <=