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:
Xiang Xiao 2022-11-13 11:03:50 +08:00 committed by Xiang Xiao
parent c6873ff5a2
commit fb618666f6

View File

@ -354,12 +354,14 @@ static inline void up_disableuartint(struct nuc_dev_s *priv, uint32_t *ier)
* Name: up_restoreuartint
****************************************************************************/
#ifdef HAVE_CONSOLE
static inline void up_restoreuartint(struct nuc_dev_s *priv, uint32_t ier)
{
uint32_t setbits = ier & UART_IER_ALLIE;
uint32_t clrbits = (~ier) & UART_IER_ALLIE;
up_setier(priv, clrbits, setbits);
}
#endif
/****************************************************************************
* Name: up_rxto_disable