Fix lpc17_40_serial.c:705:24: error: unused function 'lpc17_40_uartcclkdiv'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-31 22:36:28 +08:00 committed by Petro Karashchenko
parent 7daacec1fa
commit 4578df5cbb

View File

@ -703,7 +703,7 @@ static inline uint32_t lpc17_40_uartcclkdiv(uint32_t baud)
*
****************************************************************************/
# ifdef LPC176x
# if defined(LPC176x) && defined(USE_EARLYSERIALINIT)
static inline uint32_t lpc17_40_uartcclkdiv(uint32_t baud)
{
/* Ignoring the fractional divider, the BAUD is given by:
@ -790,7 +790,7 @@ static inline uint32_t lpc17_40_uartcclkdiv(uint32_t baud)
return SYSCON_PCLKSEL_CCLK8;
}
}
# endif /* LPC176x */
# endif /* LPC176x && USE_EARLYSERIALINIT */
#endif /* CONFIG_LPC17_40_UART_USE_FRACTIONAL_DIVIDER */
/****************************************************************************