From 7daacec1fa41523a0fb6a7f5b74ed547aad20d67 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 31 Oct 2022 22:30:48 +0800 Subject: [PATCH] Fix lpc17_40_serial.c:510:20: error: unused function 'up_restoreuartint' Signed-off-by: Xiang Xiao --- arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c index dede4d21e1..d0bb695250 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c @@ -507,11 +507,13 @@ static inline void up_disableuartint(struct up_dev_s *priv, uint32_t *ier) * Name: up_restoreuartint ****************************************************************************/ +#ifdef HAVE_CONSOLE static inline void up_restoreuartint(struct up_dev_s *priv, uint32_t ier) { priv->ier |= ier & UART_IER_ALLIE; up_serialout(priv, LPC17_40_UART_IER_OFFSET, priv->ier); } +#endif /**************************************************************************** * Name: up_enablebreaks