esp-idf
esp-idf copied to clipboard
ESP32-C6 lp-core interrupts (IDFGH-11986)
Is your feature request related to a problem?
Currently the C6 lp core can only poll for GPIO reads. Ideally, I'd like to use the LP core to count pulses while the main core is in various modes of sleep, both light and deep.
Describe the solution you'd like.
It would be nice if "ulp_lp_core_gpio.h" had functions that supported gpio interrupts on the LP GPIOs.
Describe alternatives you've considered.
I'm currently using the Pulse counter for this function. However I don't know if the pulse counter will run while the main core is in light sleep.
Additional context.
If the pulse counter does also work in light sleep, I'd be interested in comparing which solution consumes less power. With the LP-core I wouldn't have to even have to wake up the main CPU to reset the count of pulses for second by second readings, I could fill a buffer of readings and only wake the main core when the buffer was full.