diff --git a/pipico/board.c b/pipico/board.c index 4bb8d31..80f0b35 100644 --- a/pipico/board.c +++ b/pipico/board.c @@ -32,8 +32,8 @@ extern const __attribute__((aligned(4))) uint8_t firmware[]; static bool active; -static void __time_critical_func(callback)(uint gpio, uint32_t events) { - if (events & GPIO_IRQ_EDGE_FALL) { +static void __time_critical_func(reset)(bool asserted) { + if (asserted) { active = false; } } @@ -45,7 +45,7 @@ void __time_critical_func(board)(void) { a2pico_init(pio0); - a2pico_resetcallback(&callback); + a2pico_resethandler(&reset); while (true) { uint32_t pico = a2pico_getaddr(pio0);