Dormant Interrupt Acknowledge

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
John57
Posts: 10
Joined: Sat Mar 06, 2021 5:26 am

Dormant Interrupt Acknowledge

Post by John57 » Tue Apr 06, 2021 2:35 am

In the example code sleep.c described in the RP2024 Datasheet doc, an example is given where a dormant_wake interrupt is set then dormant mode is activated, and the when the wake interrupt occurs the code continues with a gpio_acknowledge_irq on the known gpio. All this code is in the same code block.

This code knows the which gpio that activated the wakeup so it can acknowledge that gpio, but if there are a number of gpios that can activate wake, is it possible to determine which gpio interrupt triggered the wakeup, so you can acknowledge it?

I currently have dormant wake working under python but it seems to break down after a while. It is possibly this problem with acknowledging the interrupt.

One possibility is that the interrupt handler itself does the acknowledge, but there is no current python method to do this but could be included in the machine_pin code.

John

Post Reply