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

Function free_timer

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

Free a timer

Source from the content-addressed store, hash-verified

182
183// Free a timer
184static void free_timer(u8 timer_idx) FL_NOEXCEPT {
185 if (timer_idx <= MAX_TIMER_INDEX) {
186 // Critical section: prevent interrupt from accessing freed resources
187 __disable_irq();
188 timer_allocated[timer_idx] = false;
189 timer_handles[timer_idx] = nullptr;
190 __enable_irq();
191 }
192}
193
194// Allocate a free EIC channel
195static bool allocate_eic_channel(u8& channel) FL_NOEXCEPT {

Callers 2

attach_timer_handlerFunction · 0.70
detach_handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected