Fix chip/sam_serial.c:900:20: error: unused function 'sam_restoreusartint' [-Werror,-Wunused-function]

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-13 17:00:31 +08:00 committed by Xiang Xiao
parent 7e823fc862
commit 94655e95ea

View File

@ -897,6 +897,7 @@ static inline void sam_serialout(struct sam_dev_s *priv, int offset,
* Name: sam_restoreusartint * Name: sam_restoreusartint
****************************************************************************/ ****************************************************************************/
#ifdef CONFIG_SERIAL_TERMIOS
static inline void sam_restoreusartint(struct sam_dev_s *priv, uint32_t imr) static inline void sam_restoreusartint(struct sam_dev_s *priv, uint32_t imr)
{ {
/* Restore the previous interrupt state (assuming all interrupts /* Restore the previous interrupt state (assuming all interrupts
@ -905,6 +906,7 @@ static inline void sam_restoreusartint(struct sam_dev_s *priv, uint32_t imr)
sam_serialout(priv, SAM_UART_IER_OFFSET, imr); sam_serialout(priv, SAM_UART_IER_OFFSET, imr);
} }
#endif
/**************************************************************************** /****************************************************************************
* Name: sam_disableallints * Name: sam_disableallints