78 static inline void timebaseISR(uint8_t i, uint8_t timer)
__attribute__((always_inline, unused));
79 static inline void timebaseISR(uint8_t i, uint8_t timer) {
80 if (TIM_GetITStatus(TIMER_MAP[timer].TIMx, TIM_IT_Update) != RESET)
82 TIM_ClearITPendingBit(TIMER_MAP[timer].TIMx, TIM_IT_Update);
83 if (TIMEBASE_MAP[i].isr != 0)
84 TIMEBASE_MAP[i].isr();
void timerInterrupts()
Re-enable timer interrupts.
Definition: timebase.c:89
void attachTimerInterrupt(uint8_t i, ISRType ISR, int freqHz)
Begin a timer interrupt.
Definition: timebase.c:61
void noTimerInterrupts()
Disable all timer interrupts.
Definition: timebase.c:83
void detachTimerInterrupt(uint8_t i)
Disable a timer interrupt.
Definition: timebase.c:77