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/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to