Przeglądaj źródła

Merge branch 'bugfix/RTC_CLK_CAL_CYCLES' into 'master'

esp32xx: Fix the Number of cycles for RTC_SLOW_CLK calibration

See merge request espressif/esp-idf!13202
Angus Gratton 4 lat temu
rodzic
commit
64a96ca96d
2 zmienionych plików z 6 dodań i 4 usunięć
  1. 3 2
      components/esp32c3/Kconfig
  2. 3 2
      components/esp32s3/Kconfig

+ 3 - 2
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

+ 3 - 2
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