[En-Nut-Discussion] Native timers with NutOS 4.X and WINAVR-20060125
Andreas Genzel
enlist at touch2nut.de
Fri Mar 3 10:37:46 CET 2006
Hi all,
I have a problem with native timer using NutOS 4.0.2 (or 4.1.3...) in
combination with WINAVR-20060125
with the previous Version of WINAVR the following code worked fine:
...
void TimerCallback(void *arg)
{
TCNT1 =7939; //set timercounter
...
}
...
...
cbi (TIMSK,TOIE1); // disable tnt
cbi(TCCR1B, CS10); // set prescaler
cbi(TCCR1B, CS11);
sbi(TCCR1B, CS12);
NutRegisterIrqHandler(&sig_OVERFLOW1,TimerCallback,0);
sbi (TIMSK,TOIE1); // enable int
...
with 20060125 the TimerCallback is never executed ??
Anybody any ideas - hints ....?
Many thanks
Andreas Genzel
More information about the En-Nut-Discussion
mailing list