Page 1 of 1

ULP Wakeup GPIO-interrupt figure out what pin caused it to wake up

Posted: Tue Sep 19, 2023 3:03 pm
by JVKran
Hi there!

I was wondering if it's possible to figure out what pin caused the ULP to wakeup from within the ULP. One possible use case; if wakeup on pin 11 occurs, always wake main processor, but when it occurs on pin 12, only wake up the main processor if the adc voltage is higher than 3V.

Given the example here; https://github.com/espressif/esp-idf/tr ... _interrupt

Kind regards,

Jochem

Re: ULP Wakeup GPIO-interrupt figure out what pin caused it to wake up

Posted: Wed Sep 20, 2023 6:57 am
by sudeep-mohanty
You could configure different GPIOs to control selective wakeup. An example of using GPIO#0 is here - https://github.com/espressif/esp-idf/bl ... main.c#L26.
I suppose you could employ a similar logic.