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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-11 15:08:34 +08:00 committed by Alan Carvalho de Assis
parent ddcebb22c9
commit 0dd1dbe871
1 changed files with 0 additions and 22 deletions

View File

@ -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
****************************************************************************/