static void __attribute__((interrupt("IRQ"))) EPIT2_HANDLER(void) { EPITSR2 = EPITSR_OCIF; /* Clear the pending status */ if (pfn_timer != NULL) pfn_timer(); }
/* Interrupt handler */ void TCU1(void) { __tcu_clear_full_match_flag(1); if (pfn_timer != NULL) pfn_timer(); }
void INT_TIMERF(void) { /* clear interrupt */ TSTAT = (0x07 << 16); if (pfn_timer != NULL) { pfn_timer(); } }
void TIMER1_ISR(void) { if (cycles_new > 0) { TIMER1.load = cycles_new - 1; cycles_new = 0; } if (pfn_timer != NULL) { cycles_new = -1; /* "lock" the variable, in case timer_set_period() * is called within pfn_timer() */ pfn_timer(); cycles_new = 0; } TIMER1.clr = 1; /* clear the interrupt */ }
static void timer_fn(void) { if(pfn_timer) pfn_timer(); }
void TIMER1(void) { if (pfn_timer != NULL) pfn_timer(); TER1 = 0xff; /* clear all events */ }
void TIMER0(void) { IO_INTC_IRQ0 = INTR_IRQ0_TMR0; /* clear TIMER0 interrupt */ if (pfn_timer != NULL) pfn_timer(); }