From 8e2856b83d2356600137d68da0b9b0398ce609a1 Mon Sep 17 00:00:00 2001 From: negativekelvin Date: Mon, 10 Sep 2018 04:49:22 -0700 Subject: [PATCH] soc: fix CPU frequency not updated in rtc_clk_init Add missing call to rtc_clk_cpu_freq_set_config Merges https://github.com/espressif/esp-idf/pull/2398 --- components/soc/esp32/rtc_clk_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/soc/esp32/rtc_clk_init.c b/components/soc/esp32/rtc_clk_init.c index 6672f460b7..bfe5ec40b5 100644 --- a/components/soc/esp32/rtc_clk_init.c +++ b/components/soc/esp32/rtc_clk_init.c @@ -119,6 +119,7 @@ void rtc_clk_init(rtc_clk_config_t cfg) bool res = rtc_clk_cpu_freq_mhz_to_config(cfg.cpu_freq_mhz, &new_config); assert(res && "invalid CPU frequency value"); + rtc_clk_cpu_freq_set_config(&new_config); /* Configure REF_TICK */ REG_WRITE(APB_CTRL_XTAL_TICK_CONF_REG, xtal_freq - 1);