From 0dd1dbe87102b4452e98bc14304bf06e087a5023 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 11 Nov 2022 15:08:34 +0800 Subject: [PATCH] Error: chip/lpc54_serial.c:900:20: error: unused function 'lpc54_modifyreg' [-Werror,-Wunused-function] static inline void lpc54_modifyreg(struct lpc54_dev_s *priv, Signed-off-by: Xiang Xiao --- arch/arm/src/lpc54xx/lpc54_serial.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/arch/arm/src/lpc54xx/lpc54_serial.c b/arch/arm/src/lpc54xx/lpc54_serial.c index 82145c0399..8b07997366 100644 --- a/arch/arm/src/lpc54xx/lpc54_serial.c +++ b/arch/arm/src/lpc54xx/lpc54_serial.c @@ -893,28 +893,6 @@ static inline void lpc54_serialout(struct lpc54_dev_s *priv, putreg32(value, priv->uartbase + offset); } -/**************************************************************************** - * Name: lpc54_modifyreg - ****************************************************************************/ - -static inline void lpc54_modifyreg(struct lpc54_dev_s *priv, - unsigned int offset, uint32_t setbits, - uint32_t clrbits) -{ - irqstate_t flags; - uintptr_t regaddr = priv->uartbase + offset; - uint32_t regval; - - flags = enter_critical_section(); - - regval = getreg32(regaddr); - regval &= ~clrbits; - regval |= setbits; - putreg32(regval, regaddr); - - leave_critical_section(flags); -} - /**************************************************************************** * Name: lpc54_fifoint_enable ****************************************************************************/