arch/stm32: Fix nxstyle errors
arch/arm/src/stm32/stm32_eth.h: * Fix nxstyle errors.
This commit is contained in:
parent
eabd79f97b
commit
607ff94793
@ -1,4 +1,4 @@
|
|||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* arch/arm/src/stm32/stm32_eth.h
|
* arch/arm/src/stm32/stm32_eth.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2011, 2015 Gregory Nutt. All rights reserved.
|
||||||
@ -31,14 +31,14 @@
|
|||||||
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __ARCH_ARM_SRC_STM32_STM32_ETH_H
|
#ifndef __ARCH_ARM_SRC_STM32_STM32_ETH_H
|
||||||
#define __ARCH_ARM_SRC_STM32_STM32_ETH_H
|
#define __ARCH_ARM_SRC_STM32_STM32_ETH_H
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
|
|
||||||
@ -50,9 +50,9 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Function Prototypes
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#undef EXTERN
|
#undef EXTERN
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
@ -63,38 +63,40 @@ extern "C"
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Function: stm32_ethinitialize
|
* Function: stm32_ethinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Initialize the Ethernet driver for one interface. If the STM32 chip supports
|
* Initialize the Ethernet driver for one interface. If the STM32 chip
|
||||||
* multiple Ethernet controllers, then board specific logic must implement
|
* supports multiple Ethernet controllers, then board specific logic must
|
||||||
* arm_netinitialize() and call this function to initialize the desired interfaces.
|
* implement arm_netinitialize() and call this function to initialize the
|
||||||
|
* desired interfaces.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* intf - In the case where there are multiple EMACs, this value identifies which
|
* intf - In the case where there are multiple EMACs, this value
|
||||||
* EMAC is to be initialized.
|
* identifies which EMAC is to be initialized.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* OK on success; Negated errno on failure.
|
* OK on success; Negated errno on failure.
|
||||||
*
|
*
|
||||||
* Assumptions:
|
* Assumptions:
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if STM32_NETHERNET > 1 || defined(CONFIG_NETDEV_LATEINIT)
|
#if STM32_NETHERNET > 1 || defined(CONFIG_NETDEV_LATEINIT)
|
||||||
int stm32_ethinitialize(int intf);
|
int stm32_ethinitialize(int intf);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/************************************************************************************
|
/****************************************************************************
|
||||||
* Function: stm32_phy_boardinitialize
|
* Function: stm32_phy_boardinitialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Some boards require specialized initialization of the PHY before it can be used.
|
* Some boards require specialized initialization of the PHY before it can
|
||||||
* This may include such things as configuring GPIOs, resetting the PHY, etc. If
|
* be used. This may include such things as configuring GPIOs, resetting
|
||||||
* CONFIG_STM32_PHYINIT is defined in the configuration then the board specific
|
* the PHY, etc. If CONFIG_STM32_PHYINIT is defined in the configuration
|
||||||
* logic must provide stm32_phyinitialize(); The STM32 Ethernet driver will call
|
* then the board specific logic must provide stm32_phyinitialize(); The
|
||||||
* this function one time before it first uses the PHY.
|
* STM32 Ethernet driver will call this function one time before it first
|
||||||
|
* uses the PHY.
|
||||||
*
|
*
|
||||||
* Input Parameters:
|
* Input Parameters:
|
||||||
* intf - Always zero for now.
|
* intf - Always zero for now.
|
||||||
@ -104,7 +106,7 @@ int stm32_ethinitialize(int intf);
|
|||||||
*
|
*
|
||||||
* Assumptions:
|
* Assumptions:
|
||||||
*
|
*
|
||||||
************************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_STM32_PHYINIT
|
#ifdef CONFIG_STM32_PHYINIT
|
||||||
int stm32_phy_boardinitialize(int intf);
|
int stm32_phy_boardinitialize(int intf);
|
||||||
|
Loading…
Reference in New Issue
Block a user