bugAVR C Runtime Library - Bugs: bug #25846, include/avr/power.h:628:1: error:...

 
 

bug #25846: include/avr/power.h:628:1: error: missing binary operator before token "defined"

Submitted by:  None
Submitted on:  Fri 13 Mar 2009 10:28:01 AM UTC  
 
Category: HeaderSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Header files
Status: FixedPercent Complete: 100%
Assigned to: Eric Weddington <arcanum>Originator Email: -unavailable-
Open/Closed: ClosedRelease: 1.6.4
Fixed Release: 1.6.4

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 13 Mar 2009 10:28:01 AM UTC, original submission:

Hi there,

I compiled avr-libc-1.6.5 some days ago and now stumbled upon a quirk in the header files. power.h most probably misses an "||" operator preceeding line 628 as following:

620 #define power_all_disable() \
621 do{ \
622 PRR0 |= (uint8_t)((1<<PRADC)|(1<<PRSPI)|(1<<PRTWI)|(1<<PRTIM0)|(1<<PRTIM1)|(1<<PRTIM2)); \
623 PRR1 |= (uint8_t)((1<<PRTIM3)|(1<<PRUSART1)|(1<<PRUSB)); \
624 }while(0)
625
626
627 #elif defined(_AVR_ATmega32U4_) \
628 || defined(_AVR_ATmega16U4_)
629
630
631 #define power_adc_enable() (PRR0 &= (uint8_t)~(1 << PRADC))

Womo

Anonymous

 

(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 arcanum (Updated the item)
  •  

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

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 Mar 2009 05:24:20 PM UTCarcanumStatusNone=>Fixed
      Percent Complete0%=>100%
      Assigned toNone=>arcanum
      Open/ClosedOpen=>Closed
      Release1.7.*=>1.6.4
      Fixed ReleaseNone=>1.6.4

    Back to the top


    Powered by Savane 3.1-cleanup1