diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c index a0da10db36..dede4d21e1 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c @@ -810,7 +810,7 @@ static inline uint32_t lpc17_40_uartcclkdiv(uint32_t baud) * ****************************************************************************/ -#ifdef CONFIG_LPC17_40_UART0 +#if defined(CONFIG_LPC17_40_UART0) && !defined(CONFIG_UART0_SERIAL_CONSOLE) static inline void lpc17_40_uart0config(void) { uint32_t regval;