Adjusted to recent A2Pico lib update.

This commit is contained in:
Oliver Schmidt 2024-02-09 22:28:00 +01:00
parent 3b07e468bf
commit c029e1847a

View File

@ -32,8 +32,8 @@ extern const __attribute__((aligned(4))) uint8_t firmware[];
static bool active; static bool active;
static void __time_critical_func(callback)(uint gpio, uint32_t events) { static void __time_critical_func(reset)(bool asserted) {
if (events & GPIO_IRQ_EDGE_FALL) { if (asserted) {
active = false; active = false;
} }
} }
@ -45,7 +45,7 @@ void __time_critical_func(board)(void) {
a2pico_init(pio0); a2pico_init(pio0);
a2pico_resetcallback(&callback); a2pico_resethandler(&reset);
while (true) { while (true) {
uint32_t pico = a2pico_getaddr(pio0); uint32_t pico = a2pico_getaddr(pio0);