nxstyle corrections for .c and .h file modified by PR1030

This commit is contained in:
rajeshwaribhat
2020-05-12 15:14:43 +05:30
committed by Gregory Nutt
parent 4664642cf7
commit 3d7678ad9b
4 changed files with 52 additions and 71 deletions
+7 -7
View File
@@ -1525,8 +1525,8 @@ static void rx65n_receive(FAR struct rx65n_ethmac_s *priv)
#ifdef CONFIG_NET_PKT
/* When packet sockets are enabled, feed the frame into the packet
* tap
*/
* tap
*/
pkt_input(&priv->dev);
#endif
@@ -1886,7 +1886,7 @@ static void rx65n_interrupt_work(FAR void *arg)
if (OK == phyreg_read_status)
{
regval = (uint32_t)(phyreg & PHY_STS_BIT_MASK)
>> PHY_STS_SHIFT_COUNT;
>> PHY_STS_SHIFT_COUNT;
}
if (regval != priv->prevlinkstatus) /* Check link status by 0th bit */
@@ -2582,8 +2582,8 @@ static void rx65n_txdescinit(FAR struct rx65n_ethmac_s *priv)
txdesc->tdes2 = 0;
/* Initialize the next descriptor with the Next Descriptor Polling
* Enable
*/
* Enable
*/
if (i < (CONFIG_RX65N_ETH_NTXDESC - 1))
{
@@ -2664,8 +2664,8 @@ static void rx65n_rxdescinit(FAR struct rx65n_ethmac_s *priv)
rxdesc->rdes2 = (uint32_t)&priv->rxbuffer[i*CONFIG_RX65N_ETH_BUFSIZE];
/* Initialize the next descriptor with the Next Descriptor Polling
* Enable
*/
* Enable
*/
if (i < (CONFIG_RX65N_ETH_NRXDESC - 1))
{
+9 -9
View File
@@ -1200,8 +1200,8 @@ static int up_eriinterrupt(int irq, void *context, void *arg)
priv->ssr = up_serialin(priv, RX_SCI_SSR_OFFSET);
/* Clear all read related events (probably already done in
* up_receive))
*/
* up_receive))
*/
priv->ssr &= ~(RX_SCISSR_ORER | RX_SCISSR_FER | RX_SCISSR_PER);
up_serialout(priv, RX_SCI_SSR_OFFSET, priv->ssr);
@@ -1227,8 +1227,8 @@ static int up_teiinterrupt(int irq, void *context, void *arg)
priv->ssr = up_serialin(priv, RX_SCI_SSR_OFFSET);
/* Clear all read related events (probably already done in
* up_receive))
*/
* up_receive))
*/
priv->ssr &= ~(RX_SCISSR_TEND);
up_serialout(priv, RX_SCI_SSR_OFFSET, priv->ssr);
@@ -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;
@@ -1,44 +1,29 @@
/***************************************************************************
* boards/renesas/rx65n/rx65n-rsklmb/include/board.h
/****************************************************************************
* boards/renesas/rx65n/rx65n-rsk1mb/include/board.h
*
* Copyright (C) 2008-2019 Gregory Nutt. All rights reserved.
* Author: Anjana <anjana@tataelxsi.co.in>
* 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
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
* 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.
*
* 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.
*
***************************************************************************/
****************************************************************************/
#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
}