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

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

[avr-libc-dev] [bug #25846] include/avr/power.h:628:1: error: missing bi


From: anonymous
Subject: [avr-libc-dev] [bug #25846] include/avr/power.h:628:1: error: missing binary operator before token "defined"
Date: Fri, 13 Mar 2009 10:28:03 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14

URL:
  <http://savannah.nongnu.org/bugs/?25846>

                 Summary: include/avr/power.h:628:1: error: missing binary
operator before token "defined"
                 Project: AVR C Runtime Library
            Submitted by: None
            Submitted on: Fr 13 Mär 2009 10:28:01 UTC
                Category: Header
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Header files
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.7.*
           Fixed Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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