deep sleep: add notice that pads used for wakeup will be configured as RTC GPIOs

Closes https://github.com/espressif/esp-idf/issues/245
This commit is contained in:
Ivan Grokhotkov 2017-01-17 11:55:04 +08:00 committed by Angus Gratton
parent fd8703bd2a
commit 48516fded2

View 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. 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 .. doxygenfunction:: esp_deep_sleep_enable_ext0_wakeup
External wakeup (ext1) External wakeup (ext1)
@ -61,6 +63,8 @@ This wakeup source is implemented by the RTC controller. As such, RTC peripheral
gpio_pullup_dis(gpio_num); gpio_pullup_dis(gpio_num);
gpio_pulldown_en(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: The following function can be used to enable this wakeup mode:
.. doxygenfunction:: esp_deep_sleep_enable_ext1_wakeup .. doxygenfunction:: esp_deep_sleep_enable_ext1_wakeup