From 86221b2ed7a385af9d8fe507ddb4d2720eb4cbd0 Mon Sep 17 00:00:00 2001 From: Lou Tianhao Date: Sun, 7 Apr 2024 11:55:06 +0800 Subject: [PATCH] change(esp_hw_support): remove fast osc calibration during light sleep(need c5mp to fix) --- components/esp_hw_support/sleep_modes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_hw_support/sleep_modes.c b/components/esp_hw_support/sleep_modes.c index 027e7a675a..21e8719b69 100644 --- a/components/esp_hw_support/sleep_modes.c +++ b/components/esp_hw_support/sleep_modes.c @@ -683,7 +683,11 @@ static IRAM_ATTR void sleep_low_power_clock_calibration(bool is_dslp) if ((s_lightsleep_cnt % CONFIG_PM_LIGHTSLEEP_RTC_OSC_CAL_INTERVAL == 0) || is_dslp) #endif { +#if !CONFIG_IDF_TARGET_ESP32C5_BETA3_VERSION s_config.fast_clk_cal_period = rtc_clk_cal(RTC_CAL_RC_FAST, FAST_CLK_SRC_CAL_CYCLES); +#else + s_config.fast_clk_cal_period = 0x8000; +#endif } #endif }