esp32/modesp32: Add wake_on_ulp() so ULP can wake CPU from deepsleep.

Add esp32.wake_on_ulp() to give access to esp_sleep_enable_ulp_wakeup(),
which is needed to allow the ULP co-processor to wake the main CPU from
deep sleep.
This commit is contained in:
Christian Walther
2022-05-26 16:29:26 +02:00
committed by Damien George
parent cf550ad9d1
commit ba21f76f89
4 changed files with 22 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ Functions
Configure whether or not a touch will wake the device from sleep.
*wake* should be a boolean value.
.. function:: wake_on_ulp(wake)
Configure whether or not the Ultra-Low-Power co-processor can wake the
device from sleep. *wake* should be a boolean value.
.. function:: wake_on_ext0(pin, level)
Configure how EXT0 wakes the device from sleep. *pin* can be ``None``