FastLED 3.10.8
Loading...
Searching...
No Matches

◆ maybeShutdownIsr()

void fl::pwm_state::maybeShutdownIsr ( )

Definition at line 210 of file pin.cpp.hpp.

210 {
211 if (!g_state) return; // ISR can only be active once state exists.
212 PwmStateData& st = *g_state;
213 if (!st.isr_active) return;
214 if (countIsrChannels() > 0) return;
215
217 st.isr_active = false;
218}
int detach_handler(handle &h) FL_NO_EXCEPT
Detach an ISR handler.
u8 countIsrChannels() FL_NO_EXCEPT
Definition pin.cpp.hpp:177
PwmStateData * g_state
Definition pin.cpp.hpp:115
fl::isr::handle isr_handle
Definition pin.cpp.hpp:101

References countIsrChannels(), fl::isr::detach_handler(), fl::FL_NO_EXCEPT, g_state, fl::pwm_state::PwmStateData::isr_active, and fl::pwm_state::PwmStateData::isr_handle.

Referenced by releaseChannel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: