MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / touchpadISR

Function touchpadISR

modules/drivers/touchpad/esp32/modTouchpad.c:206–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206void touchpadISR(void *refcon)
207{
208 modTouchpad touchpad = refcon;
209
210 touchpad->values = touch_pad_get_status();
211
212 if (!touchpad->onReadable)
213 return;
214
215 if (touchpad->triggered)
216 return;
217 touchpad->triggered = true;
218
219 modMessagePostToMachineFromISR(touchpad->the, touchpadDeliver, touchpad);
220}
221
222void touchpadDeliver(void *the, void *refcon, uint8_t *message, uint16_t messageLength)
223{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected