From ba21f76f89d05150b7d6ec2dfac45476ffc4866c Mon Sep 17 00:00:00 2001 From: Christian Walther Date: Thu, 26 May 2022 16:29:26 +0200 Subject: 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. --- docs/library/esp32.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/library/esp32.rst b/docs/library/esp32.rst index 334800349..f0f0c8ef1 100644 --- a/docs/library/esp32.rst +++ b/docs/library/esp32.rst @@ -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`` -- cgit v1.2.3