]> granicus.if.org Git - esp-idf/commitdiff
Fix compilation if CONSOLE_UART is set to NONE
authorme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 13:36:10 +0000 (15:36 +0200)
committerme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 13:36:10 +0000 (15:36 +0200)
CONFIG_CONSOLE_UART_BAUDRATE is not defined

components/esp32/cpu_start.c

index b5e896e573f9e6eeb46f40526835fb057547b571..edc2881a284dba7cc89883ed53455eba5cdd8334 100644 (file)
@@ -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