]> granicus.if.org Git - esp-idf/commitdiff
deep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 17 Jan 2017 03:55:04 +0000 (11:55 +0800)
committerAngus Gratton <angus@espressif.com>
Wed, 8 Mar 2017 23:21:31 +0000 (10:21 +1100)
Closes https://github.com/espressif/esp-idf/issues/245

docs/api/system/deep_sleep.rst

index c66127d633cbb677aa7d49f084da37ba079b62c2..407b14bae00a3bdb7531fac03c6a9f98ef2be977 100644 (file)
@@ -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: