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:
parent
4e6568c29a
commit
27629b74c9
@ -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
|
||||
****************************************************************************/
|
||||
|
@ -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
|
||||
****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user