From 5e4081e34dd8308b5f4d1999d241aaf1b875eac4 Mon Sep 17 00:00:00 2001 From: Li Shuai Date: Mon, 31 Aug 2026 11:05:36 +0800 Subject: [PATCH] change(esp_pm): extended help description for PM_SLP_DISABLE_GPIO option --- components/esp_pm/Kconfig | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/components/esp_pm/Kconfig b/components/esp_pm/Kconfig index 2a00d48333e..991245da5c1 100644 --- a/components/esp_pm/Kconfig +++ b/components/esp_pm/Kconfig @@ -98,10 +98,17 @@ menu "Power Management" help This feature is intended to disable all GPIO pins at automantic sleep to get a lower power mode. If enabled, chips will disable all GPIO pins at automantic sleep to reduce about 200~300 uA current. - If you want to specifically use some pins normally as chip wakes when chip sleeps, - you can call 'gpio_sleep_sel_dis' to disable this feature on those pins. - You can also keep this feature on and call 'gpio_sleep_set_direction' and 'gpio_sleep_set_pull_mode' - to have a different GPIO configuration at sleep. + + If you want to specifically use some pins normally as chip wakes when chip sleeps, you can + call 'gpio_sleep_sel_dis' to disable this feature on those pins. + + Please note, that disabling a GPIO as a wake-up source via `gpio_wakeup_disable` reverts + the effect of `gpio_sleep_sel_dis` for that pin. + When you disable a GPIO as wake-up source, but want to keep the GPIO powered or some custom + GPIO sleep state configurations during sleep, you must call `gpio_sleep_sel_dis` again. + + Alternatively, You can also keep this feature on and call 'gpio_sleep_set_direction' and + 'gpio_sleep_set_pull_mode' to have a different GPIO configuration at sleep. config PM_SLP_DEFAULT_PARAMS_OPT bool