You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/16 13:47:21 UTC

[incubator-nuttx] 16/35: arch/arm/src/lpc31xx/lpc31_serial.c: Appease nxstyle

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

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

commit 19badbda2497995e682d2d9ae129b5d1fd9aeca9
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Nov 10 09:07:02 2020 +0900

    arch/arm/src/lpc31xx/lpc31_serial.c: Appease nxstyle
---
 arch/arm/src/lpc31xx/lpc31_serial.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/arch/arm/src/lpc31xx/lpc31_serial.c b/arch/arm/src/lpc31xx/lpc31_serial.c
index fa5d1a8..691e244 100644
--- a/arch/arm/src/lpc31xx/lpc31_serial.c
+++ b/arch/arm/src/lpc31xx/lpc31_serial.c
@@ -280,7 +280,9 @@ static inline void up_configbaud(void)
 
               if (tmperr < errval)
                 {
-                  /* Yes, save these settings as the new, candidate optimal settings */
+                  /* Yes, save these settings as the new, candidate optimal
+                   * settings
+                   */
 
                   mulval    = tmulval ;
                   divaddval = tdivaddval;
@@ -427,11 +429,11 @@ static void up_shutdown(struct uart_dev_s *dev)
  * Description:
  *   Configure the UART to operation in interrupt driven mode.  This method
  *   is called when the serial port is opened.  Normally, this is just after
- *   he the setup() method is called, however, the serial console may operate in
+ *   he the setup() method is called, however, the serial console may operate
  *   in a non-interrupt driven mode during the boot phase.
  *
  *   RX and TX interrupts are not enabled when by the attach method (unless
- *   the hardware supports multiple levels of interrupt enabling).  The RX and TX
+ *   the hardware supports multiple levels of interrupt enabling).  The RX
  *   and TX interrupts are not enabled until the txint() and rxint() methods
  *   are called.
  *
@@ -519,8 +521,8 @@ static int up_interrupt(int irq, void *context, FAR void *arg)
         {
           /* Handle incoming, receive bytes (with or without timeout) */
 
-          case UART_IIR_INTID_RDA: /* Received Data Available */
-          case UART_IIR_INTID_TIMEOUT:  /* Character time-out */
+          case UART_IIR_INTID_RDA:     /* Received Data Available */
+          case UART_IIR_INTID_TIMEOUT: /* Character time-out */
             {
               uart_recvchars(dev);
               break;
@@ -565,6 +567,7 @@ static int up_interrupt(int irq, void *context, FAR void *arg)
             }
         }
     }
+
     return OK;
 }
 
@@ -667,6 +670,7 @@ static void up_rxint(struct uart_dev_s *dev, bool enable)
     {
       priv->ier &= ~UART_IER_RDAINTEN;
     }
+
   putreg32(priv->ier, LPC31_UART_IER);
 }
 
@@ -717,6 +721,7 @@ static void up_txint(struct uart_dev_s *dev, bool enable)
     {
       priv->ier &= ~UART_IER_THREINTEN;
     }
+
   putreg32(priv->ier, LPC31_UART_IER);
 }