[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] CPU hogs, continued
On Sat, 09 Feb 2002 22:03:49 +0100, Konrad M. Kokoszkiewicz wrote:
> Jo, could you check again (using a program written especially for
> that), that the 200 Hz timer works on your machine?
What kind of program would that be? The following piece of code indicates
that the 200Hz timer works as it should:
#include <stdio.h>
#include <tos.h>
void main(void)
{
long old_sstack, *timer200 = (long *)0x4ba;
old_sstack = Super(0L);
printf("200Hz counter: %08lx\n", *timer200);
Super((void *) old_sstack);
}
Atleast the 200Hz-counter increases with a sensible pace. However, I
have no idea if this counter is incremented by the actual timer C
interrupt on the Milan.
/*
** Jo Even Skarstein http://home.nvg.org/~joska/
*/