diff options
author | Christian Walther <cwalther@gmx.ch> | 2022-05-26 16:29:26 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-06-23 17:31:01 +1000 |
commit | ba21f76f89d05150b7d6ec2dfac45476ffc4866c (patch) | |
tree | b1f489cdb2348bb06640f819808ff677c991730f /docs/library/esp32.rst | |
parent | cf550ad9d1f15d862d7e9fb3526cd57e1ea69057 (diff) | |
download | micropython-ba21f76f89d05150b7d6ec2dfac45476ffc4866c.tar.gz micropython-ba21f76f89d05150b7d6ec2dfac45476ffc4866c.zip |
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.
Diffstat (limited to 'docs/library/esp32.rst')
-rw-r--r-- | docs/library/esp32.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/library/esp32.rst b/docs/library/esp32.rst index 3348003499..f0f0c8ef1f 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`` |