Adjusted to recent A2Pico lib update.
This commit is contained in:
parent
3b07e468bf
commit
c029e1847a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue