Skip to content

Commit 51a102a

Browse files
committed
feat(example): update gpio/ext1 wakeup avaliable IO num in example Kconfig
1 parent 603ad05 commit 51a102a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

examples/system/deep_sleep/main/Kconfig.projbuild

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ menu "Example Configuration"
4444
range 7 14 if IDF_TARGET_ESP32H2
4545
range 0 21 if IDF_TARGET_ESP32S2
4646
range 0 21 if IDF_TARGET_ESP32S3
47+
range 0 15 if IDF_TARGET_ESP32P4
4748

4849
choice EXAMPLE_EXT1_WAKEUP_PIN_1_SEL
4950
prompt "Enable wakeup from PIN_1"
@@ -118,6 +119,7 @@ menu "Example Configuration"
118119
range 7 14 if IDF_TARGET_ESP32H2
119120
range 0 21 if IDF_TARGET_ESP32S2
120121
range 0 21 if IDF_TARGET_ESP32S3
122+
range 0 15 if IDF_TARGET_ESP32P4
121123

122124
choice EXAMPLE_EXT1_WAKEUP_PIN_2_SEL
123125
prompt "Enable wakeup from PIN_2"
@@ -247,7 +249,7 @@ menu "Example Configuration"
247249
if we turn off the RTC_PERIPH domain or if certain chips lack the RTC_PERIPH domain,
248250
we will use the HOLD feature to maintain the pull-up and pull-down on the pins during sleep.
249251
but if we turn on the RTC_PERIPH domain, we don not need to use HOLD feature and this will
250-
increase some power comsumption.
252+
increase some power consumption.
251253

252254
EXT0 wakeup source resides in the same power domain as RTCIO (RTC Periph), so internal
253255
pull-up/downs are always available. There's no need to explicitly force it on for EXT0.
@@ -259,7 +261,7 @@ menu "Example Configuration"
259261
depends on SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP
260262
help
261263
This option enables wake up from GPIO. Be aware that if you use low level to trigger wakeup, we strongly
262-
recommand you to connect external pull-up resistance.
264+
recommend you to connect external pull-up resistance.
263265

264266
menu "GPIO wakeup configuration"
265267
visible if EXAMPLE_GPIO_WAKEUP
@@ -268,6 +270,7 @@ menu "Example Configuration"
268270
int "Enable wakeup from GPIO"
269271
default 0
270272
range 0 7 if IDF_TARGET_ESP32C6
273+
range 0 15 if IDF_TARGET_ESP32P4
271274
range 0 5 if !IDF_TARGET_ESP32C6
272275

273276
config EXAMPLE_GPIO_WAKEUP_HIGH_LEVEL

0 commit comments

Comments
 (0)