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:30 UTC

[incubator-nuttx] 25/35: arch/arm/src/sama5/sam_dbgu.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 174811cd5d027d3a6d99d9690cef7c0abca4ad85
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Fri Nov 13 13:26:45 2020 +0900

    arch/arm/src/sama5/sam_dbgu.c: Appease nxstyle
---
 arch/arm/src/sama5/sam_dbgu.c | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/arch/arm/src/sama5/sam_dbgu.c b/arch/arm/src/sama5/sam_dbgu.c
index 1116a43..d9d3ec7 100644
--- a/arch/arm/src/sama5/sam_dbgu.c
+++ b/arch/arm/src/sama5/sam_dbgu.c
@@ -269,14 +269,15 @@ static void dbgu_shutdown(struct uart_dev_s *dev)
  * Name: dbgu_attach
  *
  * Description:
- *   Configure the DBGU to operation in interrupt driven mode.  This method is
- *   called when the serial port is opened.  Normally, this is just after the
+ *   Configure the DBGU to operation in interrupt driven mode.  This method
+ *   is called when the serial port is opened.  Normally, this is just after
  *   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
- *   interrupts are not enabled until the txint() and rxint() methods are called.
+ *   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 interrupts are not enabled until the txint() and rxint() methods
+ *   are called.
  *
  ****************************************************************************/
 
@@ -304,8 +305,8 @@ static int dbgu_attach(struct uart_dev_s *dev)
  *
  * Description:
  *   Detach DBGU interrupts.  This method is called when the serial port is
- *   closed normally just before the shutdown method is called.  The exception
- *   is the serial console which is never shutdown.
+ *   closed normally just before the shutdown method is called.  The
+ *   exception is the serial console which is never shutdown.
  *
  ****************************************************************************/
 
@@ -348,14 +349,16 @@ static int dbgu_interrupt(int irq, void *context, FAR void *arg)
     {
       handled = false;
 
-      /* Get the DBGU/DBGU status (we are only interested in the unmasked interrupts). */
+      /* Get the DBGU/DBGU status (we are only interested in the unmasked
+       * interrupts).
+       */
 
       priv->sr = getreg32(SAM_DBGU_SR);  /* Save for error reporting */
       imr      = getreg32(SAM_DBGU_IMR); /* Interrupt mask */
       pending  = priv->sr & imr;         /* Mask out disabled interrupt sources */
 
-      /* Handle an incoming, receive byte.  RXRDY: At least one complete character
-       * has been received and US_RHR has not yet been read.
+      /* Handle an incoming, receive byte.  RXRDY: At least one complete
+       * character has been received and US_RHR has not yet been read.
        */
 
       if ((pending & DBGU_INT_RXRDY) != 0)
@@ -460,8 +463,8 @@ static void dbgu_rxint(struct uart_dev_s *dev, bool enable)
 {
   if (enable)
     {
-      /* Receive an interrupt when their is anything in the Rx data register (or an Rx
-       * timeout occurs).
+      /* Receive an interrupt when their is anything in the Rx data register
+       * (or an Rx timeout occurs).
        */
 
 #ifndef CONFIG_SUPPRESS_SERIAL_INTS