diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index f2de1642eb..f1c6644f9e 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -2547,6 +2547,7 @@ static int up_pm_prepare(struct pm_callback_s *cb, enum pm_state_e pmstate) * ****************************************************************************/ +#if USE_EARLYSERIALINIT void up_earlyserialinit(void) { #ifdef HAVE_UART @@ -2569,6 +2570,7 @@ void up_earlyserialinit(void) #endif #endif /* HAVE UART */ } +#endif /**************************************************************************** * Name: up_serialinit