Merge branch 'feature/disable_some_perip_clk_when_cpu_start' into 'master'

Disable some peripheral clocks when cpu starts

See merge request !1089
This commit is contained in:
Ivan Grokhotkov
2017-08-30 11:43:38 +08:00
4 changed files with 99 additions and 0 deletions

View File

@@ -239,6 +239,7 @@ void start_cpu0_default(void)
trax_start_trace(TRAX_DOWNCOUNT_WORDS);
#endif
esp_clk_init();
esp_perip_clk_init();
intr_matrix_clear();
#ifndef CONFIG_CONSOLE_UART_NONE
uart_div_modify(CONFIG_CONSOLE_UART_NUM, (rtc_clk_apb_freq_get() << 4) / CONFIG_CONSOLE_UART_BAUDRATE);