FastLED 3.10.9
Loading...
Searching...
No Matches

◆ maybeShutdownIsr()

void fl::pwm_state::maybeShutdownIsr ( )

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

214 {
215 if (!g_state) return; // ISR can only be active once state exists.
216 PwmStateData& st = *g_state;
217 if (!st.isr_active) return;
218 if (countIsrChannels() > 0) return;
219
220 st.detach_isr(st.isr_handle);
221 st.isr_active = false;
222}
u8 countIsrChannels() FL_NO_EXCEPT
Definition pin.cpp.hpp:178
PwmStateData * g_state
Definition pin.cpp.hpp:116
fl::isr::handle isr_handle
Definition pin.cpp.hpp:101
decltype(&fl::isr::detach_handler) detach_isr
Definition pin.cpp.hpp:102

References countIsrChannels(), fl::pwm_state::PwmStateData::detach_isr, 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: