[En-Nut-Discussion] NutOS-3.4.2 hi-res timer BUG
Tomas Konir
moje at vabo.cz
Tue Apr 27 07:07:54 CEST 2004
Hi
I found BUG in 1ms hi-res timer in NutOS. It's simple typing mistake. Patch
is attached below.
MOJE
--- nut-original/os/timer.c 2004-03-05 21:38:41.000000000 +0100
+++ nut/os/timer.c 2004-04-26 21:30:47.542828560 +0200
@@ -634,7 +634,7 @@
* register, so we'll get a compare match interrupt every
* millisecond.
*/
#ifdef __AVR_ATmega128__
- outp(BV(CS00) | BV(CS20) | BV(WGM01), TCCR0);
+ outp(BV(CS00) | BV(CS02) | BV(WGM01), TCCR0);
#else
outp(BV(CS00) | BV(CS02) | BV(CTC0), TCCR0);
#endif
More information about the En-Nut-Discussion
mailing list