interrupt(TIMER0_A0_VECTOR) __attribute__ ((naked)) timer0_a0_isr(void) { __enter_isr(); TA0_unset(0); int_handler(0); __exit_isr(); }
interrupt(TIMER0_A1_VECTOR) __attribute__ ((naked)) timer0_a1_5_isr(void) { __enter_isr(); short taiv = TA0IV; short timer; if (taiv & TAIFG) { DEBUG("Overflow\n"); } else { timer = (taiv/2); TA0_unset(timer); int_handler(timer); } __exit_isr(); }
void hwtimer_arch_unset(short timer) { TA0_unset(timer); }