1 Feb 13:52
[bug #28756] Bug in AVR libc 1.6.7 (power.h for 8-bit AVR)
Timur Gilfanov <INVALID.NOREPLY <at> gnu.org>
2010-02-01 12:52:17 GMT
2010-02-01 12:52:17 GMT
Follow-up Comment #3, bug #28756 (project avr-libc):
I'm have his bug in WinAVR 20100110 too. In clock_prescale_set(x) I found
infinity loop and error disappear when I remove loop:
WinAVR 20100110 power.h:
#define clock_prescale_set(x)
do {
uint8_t tmp = _BV(CLKPCE);
__asm__ __volatile__ (
"in __tmp_reg__,__SREG__" "nt"
"cli" "nt"
"sts %1, %0" "nt"
"sts %1, %2" "nt"
"out __SREG__, __tmp_reg__"
: /* no outputs */
: "d" (tmp),
"M" (_SFR_MEM_ADDR(CLKPR)),
"d" (x)
: "r0");
} while (0)
WinAVR 20090313 power.h:
#define clock_prescale_set(x)
{
uint8_t tmp = _BV(CLKPCE);
__asm__ __volatile__ (
"in __tmp_reg__,__SREG__" "nt"
"cli" "nt"
"sts %1, %0" "nt"
(Continue reading)
RSS Feed