mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
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:
committed by
Petro Karashchenko
parent
7daacec1fa
commit
4578df5cbb
@@ -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)
|
static inline uint32_t lpc17_40_uartcclkdiv(uint32_t baud)
|
||||||
{
|
{
|
||||||
/* Ignoring the fractional divider, the BAUD is given by:
|
/* 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;
|
return SYSCON_PCLKSEL_CCLK8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# endif /* LPC176x */
|
# endif /* LPC176x && USE_EARLYSERIALINIT */
|
||||||
#endif /* CONFIG_LPC17_40_UART_USE_FRACTIONAL_DIVIDER */
|
#endif /* CONFIG_LPC17_40_UART_USE_FRACTIONAL_DIVIDER */
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user