2017-01-27 11:00:31 -05:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
2020-04-22 10:46:23 -04:00
|
|
|
config EXAMPLE_TOUCH_WAKEUP
|
2019-01-25 11:10:53 -05:00
|
|
|
bool "Enable touch wake up"
|
|
|
|
default y
|
2022-06-07 14:20:56 -04:00
|
|
|
depends on SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP
|
2019-01-25 11:10:53 -05:00
|
|
|
help
|
2022-10-27 03:00:02 -04:00
|
|
|
This option enables wake up from deep sleep using touch pads.
|
|
|
|
ESP32 - TOUCH8 and TOUCH9, which correspond to GPIO33 and GPIO32.
|
|
|
|
ESP32S2/S3 - TOUCH9, which corresponds to GPIO9.
|
|
|
|
|
|
|
|
Note: On ESP32, touch wakeup source can not be used together with ext0 wakeup source.
|
2017-01-27 11:00:31 -05:00
|
|
|
|
2022-02-14 13:09:47 -05:00
|
|
|
config EXAMPLE_EXT0_WAKEUP
|
|
|
|
bool "Enable wakeup from GPIO (ext0)"
|
2022-10-27 03:00:02 -04:00
|
|
|
default y if !IDF_TARGET_ESP32
|
|
|
|
default n if IDF_TARGET_ESP32
|
|
|
|
depends on SOC_PM_SUPPORT_EXT_WAKEUP
|
2022-02-14 13:09:47 -05:00
|
|
|
help
|
2022-10-27 03:00:02 -04:00
|
|
|
This option enables wake up from deep sleep from GPIO25(ESP32)/GPIO3(ESP32S2,S3). The pin should be
|
|
|
|
connected to LOW to avoid being in a floating state. When triggering a wake up, connect the pin to HIGH.
|
|
|
|
Note that floating pins may trigger a wake up.
|
|
|
|
|
|
|
|
Note: On ESP32, ext0 wakeup source can not be used together with touch wakeup source.
|
2022-02-14 13:09:47 -05:00
|
|
|
|
2020-04-22 10:46:23 -04:00
|
|
|
config EXAMPLE_EXT1_WAKEUP
|
2022-02-14 13:09:47 -05:00
|
|
|
bool "Enable wakeup from GPIO (ext1)"
|
2020-04-22 10:46:23 -04:00
|
|
|
default y
|
2022-10-27 03:00:02 -04:00
|
|
|
depends on SOC_PM_SUPPORT_EXT_WAKEUP
|
2020-04-22 10:46:23 -04:00
|
|
|
help
|
|
|
|
This option enables wake up from deep sleep from GPIO2 and GPIO4. They should be connected to LOW to avoid
|
|
|
|
floating pins. When triggering a wake up, connect one or both of the pins to HIGH. Note that floating
|
|
|
|
pins may trigger a wake up.
|
|
|
|
|
2022-02-14 13:09:47 -05:00
|
|
|
config EXAMPLE_EXT1_USE_INTERNAL_PULLUPS
|
|
|
|
bool "Use internal pull-up/downs for EXT1 wakeup source"
|
|
|
|
default n
|
|
|
|
depends on EXAMPLE_EXT1_WAKEUP
|
|
|
|
help
|
|
|
|
When using EXT1 wakeup source without external pull-up/downs, you may want to make use of the internal
|
|
|
|
ones.
|
|
|
|
|
|
|
|
However, the RTC IO reside in the RTC Periph power domain. Enable this option to force that power domain
|
|
|
|
ON during deep sleep. Note that this will increase some power comsumption, so it's still suggested to use
|
|
|
|
external ones instead.
|
|
|
|
|
|
|
|
EXT0 wakeup source resides in the same power domain as RTCIO (RTC Periph), so internal pull-up/downs are
|
|
|
|
always available. There's no need to explicitly force it on for EXT0.
|
|
|
|
|
2021-02-05 04:10:44 -05:00
|
|
|
config EXAMPLE_GPIO_WAKEUP
|
|
|
|
bool "Enable wakeup from GPIO"
|
|
|
|
default y
|
2021-10-26 23:56:56 -04:00
|
|
|
depends on SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
|
2021-02-05 04:10:44 -05:00
|
|
|
help
|
2021-12-30 07:31:38 -05:00
|
|
|
This option enables wake up from GPIO. Be aware that if you use low level to trigger wakeup, we strongly
|
|
|
|
recommand you to connect external pull-up resistance.
|
2021-02-05 04:10:44 -05:00
|
|
|
|
|
|
|
menu "GPIO wakeup configuration"
|
2021-10-26 23:56:56 -04:00
|
|
|
visible if SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
|
2021-02-05 04:10:44 -05:00
|
|
|
|
|
|
|
config EXAMPLE_GPIO_WAKEUP_PIN
|
|
|
|
int "Enable wakeup from GPIO"
|
2021-12-30 07:31:38 -05:00
|
|
|
default 0 if !IDF_TARGET_ESP32H2_BETA_VERSION_2
|
|
|
|
default 7 if IDF_TARGET_ESP32H2_BETA_VERSION_2
|
|
|
|
range 0 5 if !IDF_TARGET_ESP32H2_BETA_VERSION_2
|
|
|
|
range 7 12 if IDF_TARGET_ESP32H2_BETA_VERSION_2
|
2021-02-05 04:10:44 -05:00
|
|
|
|
|
|
|
config EXAMPLE_GPIO_WAKEUP_HIGH_LEVEL
|
|
|
|
bool "Enable GPIO high-level wakeup"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
This option set the gpio wake-up trigger signal, In deep sleep, only high or low level wake-up is
|
|
|
|
supported. If this option is enabled, it is a high level wake up, otherwise it is a low level wake up.
|
|
|
|
endmenu
|
|
|
|
|
2020-04-22 10:46:23 -04:00
|
|
|
endmenu
|