You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/05/13 12:41:07 UTC
[incubator-nuttx] 03/03: nxstyle fix
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr1030
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 27a7dbe7104290fa46871880e8cf1eb7ab8b3d48
Author: rajeshwaribhat <ra...@tataelxsi.co.in>
AuthorDate: Tue May 12 17:58:25 2020 +0530
nxstyle fix
---
arch/renesas/src/rx65n/rx65n_serial.c | 10 ++---
boards/renesas/rx65n/rx65n-rsk1mb/include/board.h | 55 ++++++++---------------
2 files changed, 23 insertions(+), 42 deletions(-)
diff --git a/arch/renesas/src/rx65n/rx65n_serial.c b/arch/renesas/src/rx65n/rx65n_serial.c
index 4d318b7..21ed156 100644
--- a/arch/renesas/src/rx65n/rx65n_serial.c
+++ b/arch/renesas/src/rx65n/rx65n_serial.c
@@ -1273,8 +1273,8 @@ static int up_xmtinterrupt(int irq, void *context, FAR void *arg)
DEBUGASSERT((NULL != dev));
/* Handle outgoing, transmit bytes (TDRE: Transmit Data Register Empty)
- * when TIE is enabled. TIE is only enabled when the driver is waiting with
- * buffered data. Since TDRE is usually true,
+ * when TIE is enabled. TIE is only enabled when the driver is waiting
+ * with buffered data. Since TDRE is usually true,
*/
uart_xmitchars(dev);
@@ -1302,8 +1302,8 @@ static int up_receive(struct uart_dev_s *dev, unsigned int *status)
rdr = up_serialin(priv, RX_SCI_RDR_OFFSET);
- /* Clear all read related status in real ssr (so that when when rxavailable
- * is called again, it will return false.
+ /* Clear all read related status in real ssr (so that when when
+ * rx available is called again, it will return false.
*/
ssr = up_serialin(priv, RX_SCI_SSR_OFFSET);
@@ -1311,7 +1311,7 @@ static int up_receive(struct uart_dev_s *dev, unsigned int *status)
RX_SCISSR_FER | RX_SCISSR_PER) ;
up_serialout(priv, RX_SCI_SSR_OFFSET, ssr);
- /* For status, return the SSR at the time that the interrupt was received */
+ /* For status, return SSR at the time that the interrupt was received */
*status = (uint32_t)priv->ssr << 8 | rdr;
diff --git a/boards/renesas/rx65n/rx65n-rsk1mb/include/board.h b/boards/renesas/rx65n/rx65n-rsk1mb/include/board.h
index 13e6706..f07c89c 100644
--- a/boards/renesas/rx65n/rx65n-rsk1mb/include/board.h
+++ b/boards/renesas/rx65n/rx65n-rsk1mb/include/board.h
@@ -1,44 +1,29 @@
-/***************************************************************************
- * boards/renesas/rx65n/rx65n-rsklmb/include/board.h
- *
- * Copyright (C) 2008-2019 Gregory Nutt. All rights reserved.
- * Author: Anjana <an...@tataelxsi.co.in>
+/****************************************************************************
+ * boards/renesas/rx65n/rx65n-rsk1mb/include/board.h
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
- ***************************************************************************/
+ ****************************************************************************/
#ifndef __BOARDS_RENESAS_RX65N_RX65N_RSKLMB_INCLUDE_BOARD_H
#define __BOARDS_RENESAS_RX65N_RX65N_RSKLMB_INCLUDE_BOARD_H
-/***************************************************************************
+/****************************************************************************
* Included Files
- ***************************************************************************/
+ ****************************************************************************/
#ifndef __ASSEMBLY__
# include <stdint.h>
@@ -46,7 +31,7 @@
/****************************************************************************
* Pre-processor Definitions
- ***************************************************************************/
+ ****************************************************************************/
/* Clocking */
@@ -137,10 +122,6 @@ extern "C"
#define EXTERN extern
#endif
-/****************************************************************************
- * Public Functions
- ****************************************************************************/
-
#undef EXTERN
#ifdef __cplusplus
}