You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/11/01 16:12:53 UTC

[incubator-nuttx] 05/07: Fix lpc17_40_serial.c:510:20: error: unused function 'up_restoreuartint'

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 7daacec1fa41523a0fb6a7f5b74ed547aad20d67
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Oct 31 22:30:48 2022 +0800

    Fix lpc17_40_serial.c:510:20: error: unused function 'up_restoreuartint'
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c
index dede4d21e1..d0bb695250 100644
--- a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c
+++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c
@@ -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