diff --git a/bsps/riscv/esp32/console/console-config.c b/bsps/riscv/esp32/console/console-config.c index 785ada5a0f..3eb54111dd 100644 --- a/bsps/riscv/esp32/console/console-config.c +++ b/bsps/riscv/esp32/console/console-config.c @@ -51,9 +51,11 @@ #include #include +#ifndef ESPRESSIF_USE_USB_CONSOLE static uart_tx_one_char_t uart_tx_one_char = UART_TX_ONE_CHAR_ADDR; static uart_rx_one_char_t uart_rx_one_char = UART_RX_ONE_CHAR_ADDR; static uart_tx_flush_t uart_tx_flush = UART_TX_FLUSH_ADDR; +#endif #define USB_SERIAL_JTAG_EP1_REG 0x0 #define USB_SERIAL_JTAG_RDWR_BYTE( val ) BSP_FLD32( val, 0, 7 )