25 return LPC_TIM0->IR & (1 << source);
27 return LPC_TIM1->IR & (1 << source);
29 return LPC_TIM2->IR & (1 << source);
31 return LPC_TIM3->IR & (1 << source);
void TIMER2_IRQHandler(void)
_PRIVATE bool who_did_interrupt(u8 which, u8 source)
Checks the TIMER's Interrupt Register and returns whether the interrupt was triggered by the specifie...
void TIMER0_IRQHandler(void)
_PRIVATE void clear_interrupt(u8 which, u8 source)
Clears the interrupt flag for the specified source.
void TIMER1_IRQHandler(void)
void TIMER3_IRQHandler(void)
void TIMER_UnsetInterruptHandler(TIMER timer, u8 source)
Unsets the interrupt handler for a TIMER peripheral, on a specific source between the 4 match registe...
void TIMER_SetInterruptHandler(TIMER timer, u8 source, TIMER_InterruptHandler handler)
Sets the interrupt handler for a TIMER peripheral, on a specific source between the 4 match registers...
_PRIVATE TIMER_InterruptHandler handlers[TIM_COUNT *TIM_INT_SRC_COUNT]
Array of function pointers to the interrupt handlers for each TIMER peripheral. The array is of size ...
void(* TIMER_InterruptHandler)(void)
#define SET_BIT(reg, bit)