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

JVKran
Posts: 18
Joined: Thu Mar 04, 2021 2:40 pm

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

Postby JVKran » Tue Sep 19, 2023 3:03 pm

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

sudeep-mohanty
Posts: 6
Joined: Tue Aug 15, 2023 10:49 am

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

Postby sudeep-mohanty » Wed Sep 20, 2023 6:57 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 178 guests