Fix Error: chip/stm32_serial.c:1542:20: error: unused function 'up_serialmod'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-20 13:56:22 +08:00 committed by archer
parent 4e6568c29a
commit 27629b74c9
2 changed files with 0 additions and 24 deletions

View File

@ -496,18 +496,6 @@ static inline void up_serialout(struct up_dev_s *priv,
putreg32(value, priv->usartbase + offset);
}
/****************************************************************************
* Name: up_serialmod
****************************************************************************/
static inline void up_serialmod(struct up_dev_s *priv, int offset,
uint32_t clrbits, uint32_t setbits)
{
uint32_t addr = priv->usartbase + offset;
uint32_t regval = (getreg32(addr) & ~clrbits) | setbits;
putreg32(regval, addr);
}
/****************************************************************************
* Name: up_setusartint
****************************************************************************/

View File

@ -1535,18 +1535,6 @@ static inline void up_serialout(struct up_dev_s *priv, int offset,
putreg32(value, priv->usartbase + offset);
}
/****************************************************************************
* Name: up_serialmod
****************************************************************************/
static inline void up_serialmod(struct up_dev_s *priv, int offset,
uint32_t clrbits, uint32_t setbits)
{
uint32_t addr = priv->usartbase + offset;
uint32_t regval = (getreg32(addr) & ~clrbits) | setbits;
putreg32(regval, addr);
}
/****************************************************************************
* Name: up_setusartint
****************************************************************************/