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:
parent
3b060bad34
commit
7daacec1fa
@ -507,11 +507,13 @@ static inline void up_disableuartint(struct up_dev_s *priv, uint32_t *ier)
|
|||||||
* Name: up_restoreuartint
|
* Name: up_restoreuartint
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONSOLE
|
||||||
static inline void up_restoreuartint(struct up_dev_s *priv, uint32_t ier)
|
static inline void up_restoreuartint(struct up_dev_s *priv, uint32_t ier)
|
||||||
{
|
{
|
||||||
priv->ier |= ier & UART_IER_ALLIE;
|
priv->ier |= ier & UART_IER_ALLIE;
|
||||||
up_serialout(priv, LPC17_40_UART_IER_OFFSET, priv->ier);
|
up_serialout(priv, LPC17_40_UART_IER_OFFSET, priv->ier);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: up_enablebreaks
|
* Name: up_enablebreaks
|
||||||
|
Loading…
Reference in New Issue
Block a user