We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eae7bc commit 04429c9Copy full SHA for 04429c9
components/esp_hw_support/port/esp32c6/rtc_clk.c
@@ -362,6 +362,7 @@ soc_xtal_freq_t rtc_clk_xtal_freq_get(void)
362
uint32_t xtal_freq_mhz = clk_ll_xtal_load_freq_mhz();
363
if (xtal_freq_mhz == 0) {
364
ESP_HW_LOGW(TAG, "invalid RTC_XTAL_FREQ_REG value, assume 40MHz");
365
+ clk_ll_xtal_store_freq_mhz(SOC_XTAL_FREQ_40M);
366
return SOC_XTAL_FREQ_40M;
367
}
368
return (soc_xtal_freq_t)xtal_freq_mhz;
0 commit comments