[En-Nut-Discussion] 3.4.2release os/timer.c (1.3.2.2) bug

Adam Baran badam at zulu.gdynia.pl
Fri Mar 12 20:36:18 CET 2004


Hi,

It seems that last bugfix to os/timer.c (1.3.2.2) introduced another bug:

outp(BV(CS00) | BV(CS20) | BV(WGM01), TCCR0);

makes timer0 output compare ISR called 128 times too fast (wrong prescaler setting).

Should be:

outp(BV(CS00) | BV(CS02) | BV(WGM01), TCCR0);

The bad news is that 3.4.2 release was published with sources containing os/timer.c (1.3.2.2), which completely freezes applications using NutOS recompiled with NUT_CPU_FREQ defined.

Adam Baran




More information about the En-Nut-Discussion mailing list