MCPcopy Create free account
hub / github.com/arkhipenko/TaskScheduler / buttonISR

Function buttonISR

examples/Scheduler_example30_THREAD_SAFE/src/main.cpp:166–171  ·  view source on GitHub ↗

* Button ISR - triggers fast blink using thread-safe requestAction */

Source from the content-addressed store, hash-verified

164 * Button ISR - triggers fast blink using thread-safe requestAction
165 */
166void IRAM_ATTR buttonISR() {
167 // Signal the status request from ISR
168 // This is thread-safe via requestAction
169 ts.requestAction(&buttonPressed, TASK_SR_REQUEST_SIGNALCOMPLETE, 0, 0, 0, 0, 0);
170 isrTriggers++;
171}
172
173/**
174 * Timer ISR - adjusts blink rate using thread-safe requestAction

Callers

nothing calls this directly

Calls 1

requestActionMethod · 0.80

Tested by

no test coverage detected