# Copyright (c) 2022-2025 Espressif Systems (Shanghai) Co., Ltd.
# SPDX-License-Identifier: Apache-2.0

mainmenu "Espressif Deep Sleep demo"

config EXAMPLE_EXT1_WAKEUP
	bool "Enable wakeup from GPIO"
	depends on !SOC_SERIES_ESP32C3
	select GPIO
	help
	  This option enables wake-up from deep sleep using RTC IO
	  pins. On targets which support internal pull resistors for
	  RTC IOs, the sample enables internal pull-down on EXT1 pins
	  to avoid spurious wake-ups. On targets without this hardware
	  feature, external pull-down resistors should be used instead.
	  To trigger a wake-up, connect one or both of the pins to HIGH.

config EXAMPLE_GPIO_WAKEUP
	bool "Enable wakeup from GPIO"
	depends on SOC_SERIES_ESP32C3
	select GPIO
	help
	  This option enables wake-up from GPIO. Only GPIO0~5 can be used
	  as wake-up source. Be aware that when low level is used to trigger
	  wake-up, an external pull-up resistance is necessary.

config EXAMPLE_WAKEUP_TIME_SEC
	int "Wakeup time in seconds"
	default 5
	help
	  This option sets the time in seconds after which the device
	  will wake up from deep sleep. The value must be greater than 0.

source "Kconfig.zephyr"
