From 8e1256ca88223a202c23cb83ec7d35437f686e59 Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Mon, 19 Apr 2021 15:58:15 +0800 Subject: [PATCH] esp32xx: Fix the Number of cycles for RTC_SLOW_CLK calibration --- components/esp32c3/Kconfig | 5 +++-- components/esp32s3/Kconfig | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/esp32c3/Kconfig b/components/esp32c3/Kconfig index 7f4e504448..26d4bacfb9 100644 --- a/components/esp32c3/Kconfig +++ b/components/esp32c3/Kconfig @@ -163,8 +163,9 @@ menu "ESP32C3-Specific" config ESP32C3_RTC_CLK_CAL_CYCLES int "Number of cycles for RTC_SLOW_CLK calibration" default 3000 if ESP32C3_RTC_CLK_SRC_EXT_CRYS || ESP32C3_RTC_CLK_SRC_EXT_OSC || ESP32C3_RTC_CLK_SRC_INT_8MD256 - default 576 if ESP32C3_RTC_CLK_SRC_INT_RC - range 0 125000 + default 1024 if ESP32C3_RTC_CLK_SRC_INT_RC + range 0 27000 if ESP32C3_RTC_CLK_SRC_EXT_CRYS || ESP32C3_RTC_CLK_SRC_EXT_OSC || ESP32C3_RTC_CLK_SRC_INT_8MD256 + range 0 32766 if ESP32C3_RTC_CLK_SRC_INT_RC help When the startup code initializes RTC_SLOW_CLK, it can perform calibration by comparing the RTC_SLOW_CLK frequency with main XTAL diff --git a/components/esp32s3/Kconfig b/components/esp32s3/Kconfig index bd14cdbdf8..5fc5480bfe 100644 --- a/components/esp32s3/Kconfig +++ b/components/esp32s3/Kconfig @@ -425,8 +425,9 @@ 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 || ESP32S3_RTC_CLK_SRC_EXT_OSC || ESP32S3_RTC_CLK_SRC_INT_8MD256 - default 576 if ESP32S3_RTC_CLK_SRC_INT_RC - range 0 125000 + default 1024 if ESP32S3_RTC_CLK_SRC_INT_RC + range 0 27000 if ESP32S3_RTC_CLK_SRC_EXT_CRYS || ESP32S3_RTC_CLK_SRC_EXT_OSC || ESP32S3_RTC_CLK_SRC_INT_8MD256 + range 0 32766 if ESP32S3_RTC_CLK_SRC_INT_RC help When the startup code initializes RTC_SLOW_CLK, it can perform calibration by comparing the RTC_SLOW_CLK frequency with main XTAL