Fix lpc17_40_serial.c:510:20: error: unused function 'up_restoreuartint'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-10-31 22:30:48 +08:00 committed by Petro Karashchenko
parent 3b060bad34
commit 7daacec1fa

View File

@ -507,11 +507,13 @@ static inline void up_disableuartint(struct up_dev_s *priv, uint32_t *ier)
* Name: up_restoreuartint
****************************************************************************/
#ifdef HAVE_CONSOLE
static inline void up_restoreuartint(struct up_dev_s *priv, uint32_t ier)
{
priv->ier |= ier & UART_IER_ALLIE;
up_serialout(priv, LPC17_40_UART_IER_OFFSET, priv->ier);
}
#endif
/****************************************************************************
* Name: up_enablebreaks