11/*
2- * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
2+ * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
33 *
44 * SPDX-License-Identifier: Apache-2.0
55 */
@@ -429,8 +429,10 @@ __attribute__((deprecated("please use 'esp_sleep_enable_ext1_wakeup_io' and 'esp
429429 *
430430 * This function enables an IO pin to wake up the chip from deep sleep.
431431 *
432- * @note This function does not modify pin configuration. The pins are
433- * configured inside esp_deep_sleep_start, immediately before entering sleep mode.
432+ * @note 1.This function does not modify pin configuration. The pins are configured
433+ * inside `esp_deep_sleep_start`, immediately before entering sleep mode.
434+ * 2.This function is also applicable to waking up the lightsleep when the peripheral
435+ * power domain is powered off, see PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP in menuconfig.
434436 *
435437 * @note You don't need to worry about pull-up or pull-down resistors before
436438 * using this function because the ESP_SLEEP_GPIO_ENABLE_INTERNAL_RESISTORS
@@ -465,11 +467,17 @@ esp_err_t esp_deep_sleep_enable_gpio_wakeup(uint64_t gpio_pin_mask, esp_deepslee
465467 * wakeup level, for each GPIO which is used for wakeup.
466468 * Then call this function to enable wakeup feature.
467469 *
468- * @note On ESP32, GPIO wakeup source can not be used together with touch or ULP wakeup sources.
470+ * @note 1. On ESP32, GPIO wakeup source can not be used together with touch or ULP wakeup sources.
471+ * 2. If PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP is enabled (if target supported),
472+ * this API is unavailable since the GPIO module is powered down during sleep.
473+ * You can use `esp_deep_sleep_enable_gpio_wakeup` instead, or use EXT1 wakeup source
474+ * by `esp_sleep_enable_ext1_wakeup_io` to achieve the same function.
475+ * (Only GPIOs which have RTC functionality can be used)
469476 *
470477 * @return
471478 * - ESP_OK on success
472479 * - ESP_ERR_INVALID_STATE if wakeup triggers conflict
480+ * - ESP_ERR_NOT_SUPPORTED if GPIO wakeup source is not available
473481 */
474482esp_err_t esp_sleep_enable_gpio_wakeup (void );
475483
@@ -481,12 +489,15 @@ esp_err_t esp_sleep_enable_gpio_wakeup(void);
481489 * Wakeup from light sleep takes some time, so not every character sent
482490 * to the UART can be received by the application.
483491 *
484- * @note ESP32 does not support wakeup from UART2.
492+ * @note 1. ESP32 does not support wakeup from UART2.
493+ * 2. If PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP is enabled (if target supported),
494+ * this API is unavailable since the UART module is powered down during sleep.
485495 *
486496 * @param uart_num UART port to wake up from
487497 * @return
488498 * - ESP_OK on success
489499 * - ESP_ERR_INVALID_ARG if wakeup from given UART is not supported
500+ * - ESP_ERR_NOT_SUPPORTED if UART wakeup source is not available
490501 */
491502esp_err_t esp_sleep_enable_uart_wakeup (int uart_num );
492503
0 commit comments