Shutdown ISR if no ISR-backend channels remain
| 193 | |
| 194 | // Shutdown ISR if no ISR-backend channels remain |
| 195 | void 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 |
| 205 | void releaseChannel(PwmPinState* ch) { |
no test coverage detected