From 22c66db66b5161ed551556c1b15e8111b2b87c5a Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Sun, 7 Apr 2024 15:27:15 +0800 Subject: [PATCH] draft(esp_hw_support): need to support rtcio for c5beta3 --- components/esp_hw_support/sleep_modes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 727d2ea42a..35136975d6 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -1591,7 +1591,11 @@ bool esp_sleep_is_valid_wakeup_gpio(gpio_num_t gpio_num) #if SOC_RTCIO_PIN_COUNT > 0 return RTC_GPIO_IS_VALID_GPIO(gpio_num); #else +#if !CONFIG_IDF_TARGET_ESP32C5_BETA3_VERSION // TODO: IDF-9673 return GPIO_IS_DEEP_SLEEP_WAKEUP_VALID_GPIO(gpio_num); +#else + return true; +#endif #endif }