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
1 changed files with 3 additions and 3 deletions

View File

@ -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);