docs(esp_pm): Adding notes on configuring GPIOs when using PD_TOP sleep

Closes https://github.com/espressif/esp-idf/issues/13143
This commit is contained in:
wuzhenghui
2024-02-19 11:33:35 +08:00
parent f68c131e56
commit cfd8c6fb94
3 changed files with 14 additions and 6 deletions

View File

@@ -169,6 +169,10 @@ Light-sleep Peripheral Power Down
For peripherals that do not support Light-sleep context retention, if the Power management is enabled, the ``ESP_PM_NO_LIGHT_SLEEP`` lock should be held when the peripheral is working to avoid losing the working context of the peripheral when entering sleep.
.. note::
When the peripheral power domain is powered down during sleep, both the IO_MUX and GPIO modules are inactive, meaning the chip pins' state is not maintained by these modules. To preserve the state of an IO during sleep, it's essential to call :cpp:func:`gpio_hold_dis` and :cpp:func:`gpio_hold_en` before and after configuring the GPIO state. This action ensures that the IO configuration is latched and prevents the IO from becoming floating while in sleep mode.
API Reference
-------------