Merge branch 'bugfix/console_uart_none' into 'master'
Fix compilation if CONSOLE_UART is set to NONE CONFIG_CONSOLE_UART_BAUDRATE is not defined See merge request !445
This commit is contained in:
commit
12e3992ae2
1 changed files with 2 additions and 0 deletions
|
@ -175,7 +175,9 @@ void start_cpu0_default(void)
|
|||
trax_start_trace(TRAX_DOWNCOUNT_WORDS);
|
||||
#endif
|
||||
esp_set_cpu_freq(); // set CPU frequency configured in menuconfig
|
||||
#ifndef CONFIG_CONSOLE_UART_NONE
|
||||
uart_div_modify(CONFIG_CONSOLE_UART_NUM, (APB_CLK_FREQ << 4) / CONFIG_CONSOLE_UART_BAUDRATE);
|
||||
#endif
|
||||
#if CONFIG_BROWNOUT_DET
|
||||
esp_brownout_init();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue