From e9978f7623a89b93b4d1ff2371ed8d43483d2a67 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Wed, 28 Oct 2020 15:58:28 +0800 Subject: [PATCH] esp32xx: Fix default values for all RTC sources in RTC_CLK_CAL_CYCLES option Closes: https://github.com/espressif/esp-idf/issues/6037 --- components/esp32/Kconfig | 2 +- components/esp32s2/Kconfig | 2 +- components/esp32s3/Kconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/esp32/Kconfig b/components/esp32/Kconfig index 9362207f91..0751696f3c 100644 --- a/components/esp32/Kconfig +++ b/components/esp32/Kconfig @@ -585,7 +585,7 @@ menu "ESP32-specific" config ESP32_RTC_CLK_CAL_CYCLES int "Number of cycles for RTC_SLOW_CLK calibration" - default 3000 if ESP32_RTC_CLK_SRC_EXT_CRYS + default 3000 if ESP32_RTC_CLK_SRC_EXT_CRYS || ESP32_RTC_CLK_SRC_EXT_OSC || ESP32_RTC_CLK_SRC_INT_8MD256 default 1024 if ESP32_RTC_CLK_SRC_INT_RC range 0 27000 if ESP32_RTC_CLK_SRC_EXT_CRYS || ESP32_RTC_CLK_SRC_EXT_OSC || ESP32_RTC_CLK_SRC_INT_8MD256 range 0 32766 if ESP32_RTC_CLK_SRC_INT_RC diff --git a/components/esp32s2/Kconfig b/components/esp32s2/Kconfig index 3464590d4b..89e28c7011 100644 --- a/components/esp32s2/Kconfig +++ b/components/esp32s2/Kconfig @@ -441,7 +441,7 @@ menu "ESP32S2-specific" config ESP32S2_RTC_CLK_CAL_CYCLES int "Number of cycles for RTC_SLOW_CLK calibration" - default 3000 if ESP32S2_RTC_CLK_SRC_EXT_CRYS + default 3000 if ESP32S2_RTC_CLK_SRC_EXT_CRYS || ESP32S2_RTC_CLK_SRC_EXT_OSC || ESP32S2_RTC_CLK_SRC_INT_8MD256 default 576 if ESP32S2_RTC_CLK_SRC_INT_RC range 0 125000 help diff --git a/components/esp32s3/Kconfig b/components/esp32s3/Kconfig index e1a1a7996f..c60dd46cf1 100644 --- a/components/esp32s3/Kconfig +++ b/components/esp32s3/Kconfig @@ -462,7 +462,7 @@ menu "ESP32S3-Specific" config ESP32S3_RTC_CLK_CAL_CYCLES int "Number of cycles for RTC_SLOW_CLK calibration" - default 3000 if ESP32S3_RTC_CLK_SRC_EXT_CRYS + default 3000 if ESP32S3_RTC_CLK_SRC_EXT_CRYS || ESP32S3_RTC_CLK_SRC_EXT_OSC || ESP32S3_RTC_CLK_SRC_INT_8MD256 default 1024 if ESP32S3_RTC_CLK_SRC_INT_RC range 0 125000 help