void timer_handler(void) { /* Run through the list of tick tasks */ call_tick_tasks(); TIMER0.clr = 0; }
static __attribute__((interrupt("IRQ"))) void EPIT1_HANDLER(void) { EPITSR1 = EPITSR_OCIF; /* Clear the pending status */ /* Run through the list of tick tasks */ call_tick_tasks(); }
void TIMER0(void) { /* Run through the list of tick tasks */ call_tick_tasks(); TER0 = 0xff; /* Clear all events */ }
void INT_TIMERB(void) { /* clear interrupt */ TBCON = TBCON; call_tick_tasks(); /* Run through the list of tick tasks */ }
void TIMER4(void) { /* Run through the list of tick tasks */ call_tick_tasks(); SRCPND = TIMER4_MASK; INTPND = TIMER4_MASK; }
void TIMER1(void) { /* Run through the list of tick tasks (using main core) */ TIMER1_VAL; /* Read value to ack IRQ */ /* Run through the list of tick tasks using main CPU core - wake up the COP through its control interface to provide pulse */ call_tick_tasks(); #if NUM_CORES > 1 /* Pulse the COP */ core_wake(COP); #endif /* NUM_CORES */ }
void INT_TIMER2(void) { if (!poll_scrollwheel) call_tick_tasks(); /* Run through the list of tick tasks * (that includes reading the scrollwheel) */ else { if (!button_hold()) button_read_dbop(); /* Read the scrollwheel */ } poll_scrollwheel ^= 1; TIMER2_INTCLR = 0; /* clear interrupt */ }
Uint32 tick_timer(Uint32 interval, void *param) { long new_tick; (void) interval; (void) param; new_tick = (SDL_GetTicks() - start_tick) / (1000/HZ); while(new_tick != current_tick) { sim_enter_irq_handler(); /* Run through the list of tick tasks - increments tick * on each iteration. */ call_tick_tasks(); sim_exit_irq_handler(); } return interval; }
static void tick_timer(void) { /* Run through the list of tick tasks */ call_tick_tasks(); }
/* * call tick tasks and wake the scheduler up */ void timer_signal(union sigval arg) { (void)arg; call_tick_tasks(); interrupt(); }
void INT_TIMER2(void) { call_tick_tasks(); /* Run through the list of tick tasks */ TIMER2_INTCLR = 0; /* clear interrupt */ }