bugAVR C Runtime Library - Bugs: bug #35197, sleep.h _BV defined as __BV in...

 
 

bug #35197: sleep.h _BV defined as __BV in AT90S8515 section

Submitted by:  Bingo <bingo>
Submitted on:  Fri 30 Dec 2011 09:56:47 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: libc code
Status: FixedPercent Complete: 100%
Assigned to: NoneOpen/Closed: Closed
Release: 1.7.1Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 16 Jan 2012 11:44:53 AM UTC, comment #1:

Thanks!

Dmitry Xmelkov <dmix>
Project Administrator
Fri 30 Dec 2011 09:56:47 AM UTC, original submission:

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

Bingo <bingo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dmix (Posted a comment)
  • -unavailable- added by bingo (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Jan 2012 11:44:53 AM UTCdmixCategoryLibrary=>Header
      StatusNone=>Fixed
      Percent Complete0%=>100%
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1