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

Function maybeShutdownIsr

src/fl/system/pin.cpp.hpp:195–202  ·  view source on GitHub ↗

Shutdown ISR if no ISR-backend channels remain

Source from the content-addressed store, hash-verified

193
194// Shutdown ISR if no ISR-backend channels remain
195void maybeShutdownIsr() {
196 PwmStateData& st = state();
197 if (!st.isr_active) return;
198 if (countIsrChannels() > 0) return;
199
200 fl::isr::detach_handler(st.isr_handle);
201 st.isr_active = false;
202}
203
204// Release a channel and cleanup
205void releaseChannel(PwmPinState* ch) {

Callers 1

releaseChannelFunction · 0.85

Calls 2

countIsrChannelsFunction · 0.85
detach_handlerFunction · 0.50

Tested by

no test coverage detected