Skip to content

Commit

Permalink
Merge branch 'bugfix/bootloader_set_freq' into 'master'
Browse files Browse the repository at this point in the history
soc: fix CPU frequency not updated in rtc_clk_init

See merge request idf/esp-idf!3256
  • Loading branch information
igrr committed Sep 17, 2018
2 parents 61af7f3 + 8e2856b commit 0c6ff65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/soc/esp32/rtc_clk_init.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0c6ff65

Please sign in to comment.