| 11 | } |
| 12 | |
| 13 | void attachInterrupt(uint8_t pin, void (*callback)(void), int mode) { |
| 14 | attachInterruptArg( |
| 15 | pin, |
| 16 | [](void* arg) { |
| 17 | auto callback = reinterpret_cast<void (*)()>(arg); |
| 18 | callback(); |
| 19 | }, |
| 20 | reinterpret_cast<void*>(callback), |
| 21 | mode); |
| 22 | } |
| 23 | |
| 24 | void attachInterruptArg(uint8_t pin, void (*callback)(void*, bool), void* arg, int mode) { |
| 25 | SoftwareGPIO::instance().attachISR(pin, callback, arg, mode); |
nothing calls this directly
no test coverage detected