mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
change(esp_hw_support): update xtal_freq after assume to avoid mass print in DFS
This commit is contained in:
@ -362,6 +362,7 @@ soc_xtal_freq_t rtc_clk_xtal_freq_get(void)
|
|||||||
uint32_t xtal_freq_mhz = clk_ll_xtal_load_freq_mhz();
|
uint32_t xtal_freq_mhz = clk_ll_xtal_load_freq_mhz();
|
||||||
if (xtal_freq_mhz == 0) {
|
if (xtal_freq_mhz == 0) {
|
||||||
ESP_HW_LOGW(TAG, "invalid RTC_XTAL_FREQ_REG value, assume 40MHz");
|
ESP_HW_LOGW(TAG, "invalid RTC_XTAL_FREQ_REG value, assume 40MHz");
|
||||||
|
clk_ll_xtal_store_freq_mhz(SOC_XTAL_FREQ_40M);
|
||||||
return SOC_XTAL_FREQ_40M;
|
return SOC_XTAL_FREQ_40M;
|
||||||
}
|
}
|
||||||
return (soc_xtal_freq_t)xtal_freq_mhz;
|
return (soc_xtal_freq_t)xtal_freq_mhz;
|
||||||
|
Reference in New Issue
Block a user