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

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

Re: [avr-libc-dev] [bug #28756] Bug in AVR libc 1.6.7 (power.h for8-bit


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [bug #28756] Bug in AVR libc 1.6.7 (power.h for8-bit AVR)
Date: Wed, 3 Feb 2010 16:22:28 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Stu Bell wrote:

> As a "just in case" I recommend:
> 
>     inline void Set_cpu_prescaler(clock_div_t x)
> __attribute__((always_inline));

It would completely suffice to change the USB code header file
to

#define Set_cpu_prescaler(x) clock_prescale_set(x)

The parentheses there around clock_prescale_set() are completely
pointless, and caused the compiler to complain with recent versions of
the clock_prescale_set() macro implementation.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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