Fix Error: chip/nuc_serial.c:357:20: error: unused function 'up_restoreuartint' [-Werror,-Wunused-function]
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c6873ff5a2
commit
fb618666f6
@ -354,12 +354,14 @@ static inline void up_disableuartint(struct nuc_dev_s *priv, uint32_t *ier)
|
|||||||
* Name: up_restoreuartint
|
* Name: up_restoreuartint
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONSOLE
|
||||||
static inline void up_restoreuartint(struct nuc_dev_s *priv, uint32_t ier)
|
static inline void up_restoreuartint(struct nuc_dev_s *priv, uint32_t ier)
|
||||||
{
|
{
|
||||||
uint32_t setbits = ier & UART_IER_ALLIE;
|
uint32_t setbits = ier & UART_IER_ALLIE;
|
||||||
uint32_t clrbits = (~ier) & UART_IER_ALLIE;
|
uint32_t clrbits = (~ier) & UART_IER_ALLIE;
|
||||||
up_setier(priv, clrbits, setbits);
|
up_setier(priv, clrbits, setbits);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_rxto_disable
|
* Name: up_rxto_disable
|
||||||
|
Loading…
Reference in New Issue
Block a user