From 48516fded21de9b44887dc720065c9809d7da21c Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 17 Jan 2017 11:55:04 +0800 Subject: [PATCH] deep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs Closes https://github.com/espressif/esp-idf/issues/245 --- docs/api/system/deep_sleep.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/api/system/deep_sleep.rst b/docs/api/system/deep_sleep.rst index c66127d63..407b14bae 100644 --- a/docs/api/system/deep_sleep.rst +++ b/docs/api/system/deep_sleep.rst @@ -45,6 +45,8 @@ Because RTC IO module is enabled in this mode, internal pullup or pulldown resis In revisions 0 and 1 of the ESP32, this wakeup source is incompatible with ULP and touch wakeup sources. +.. warning:: After wake up from deep sleep, IO pad used for wakeup will be configured as RTC IO. Before using this pad as digital GPIO, reconfigure it using ``rtc_gpio_deinit(gpio_num)`` function. + .. doxygenfunction:: esp_deep_sleep_enable_ext0_wakeup External wakeup (ext1) @@ -60,6 +62,8 @@ This wakeup source is implemented by the RTC controller. As such, RTC peripheral esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON); gpio_pullup_dis(gpio_num); gpio_pulldown_en(gpio_num); + +.. warning:: After wake up from deep sleep, IO pad(s) used for wakeup will be configured as RTC IO. Before using these pads as digital GPIOs, reconfigure them using ``rtc_gpio_deinit(gpio_num)`` function. The following function can be used to enable this wakeup mode: