MCPcopy Create free account
hub / github.com/FastLED/FastLED / timer_interrupt_handler

Function timer_interrupt_handler

src/platforms/arm/samd/isr_samd.hpp:281–295  ·  view source on GitHub ↗

Common timer interrupt handler

Source from the content-addressed store, hash-verified

279
280// Common timer interrupt handler
281static void timer_interrupt_handler(u8 timer_idx) FL_NOEXCEPT {
282 Tc* timer = get_timer_instance(timer_idx);
283 if (!timer) return;
284
285 // Check if MC0 (Match/Compare 0) interrupt occurred
286 if (timer->COUNT16.INTFLAG.bit.MC0) {
287 // Clear the interrupt flag
288 timer->COUNT16.INTFLAG.bit.MC0 = 1;
289
290 samd_isr_handle_data* handle = timer_handles[timer_idx];
291 if (handle && handle->user_handler) {
292 handle->user_handler(handle->user_data);
293 }
294 }
295}
296
297// Timer ISR wrappers for each possible TC instance
298extern "C" {

Callers 8

TC0_HandlerFunction · 0.70
TC1_HandlerFunction · 0.70
TC2_HandlerFunction · 0.70
TC3_HandlerFunction · 0.70
TC4_HandlerFunction · 0.70
TC5_HandlerFunction · 0.70
TC6_HandlerFunction · 0.70
TC7_HandlerFunction · 0.70

Calls 1

get_timer_instanceFunction · 0.70

Tested by

no test coverage detected