| 204 | } |
| 205 | |
| 206 | void 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 | |
| 222 | void touchpadDeliver(void *the, void *refcon, uint8_t *message, uint16_t messageLength) |
| 223 | { |
nothing calls this directly
no test coverage detected