[En-Nut-Discussion] AT91 Timer Interrupt Handler
Paweł Czarnecki
apcom at tlen.pl
Tue Mar 17 11:37:58 CET 2009
Hi!
Maybe will be useful to change in function void TimerCounterXIrqEntry(void)
(in file arm\arch\dev\ih_at91tcX.c)
from:
dummy = inr(TC0_SR);
if (sig_TC0.ir_handler) {
(sig_TC0.ir_handler) (sig_TC0.ir_arg);
}
to:
if (sig_TC0.ir_handler) {
(sig_TC0.ir_handler) (sig_TC0.ir_arg);
}else{
dummy = inr(TC0_SR);
}
In current version we can't determine why interrupt happen -
in ir_handler TC0_SR register is cleared.
Best regards
Pawel
More information about the En-Nut-Discussion
mailing list