[En-Nut-Discussion] NutOS-3.4.2 hi-res timer BUG
Damian Slee
damian at commtech.com.au
Wed Apr 28 11:05:01 CEST 2004
I believe that was reported a month or so ago. Should be in CVS
already?
-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Tomas Konir
Sent: Tuesday, April 27, 2004 1:08 PM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] NutOS-3.4.2 hi-res timer BUG
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
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list