From 916021be8feae425ee4b1496d52a1c16d727bd13 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 8 Jun 2009 14:18:41 +0000 Subject: cosmetic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1862 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/arm/src/lm3s/lm3s_ethernet.c | 8 ++++---- nuttx/arch/arm/src/lm3s/lm3s_internal.h | 18 ++++++++++-------- 2 files changed, 14 insertions(+), 12 deletions(-) (limited to 'nuttx/arch/arm/src/lm3s') diff --git a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c index 1f5e35f27..eff8554ce 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_ethernet.c @@ -1262,7 +1262,7 @@ static int lm3s_txavail(struct uip_driver_s *dev) ****************************************************************************/ /**************************************************************************** - * Function: lm3s_initialize + * Function: lm3s_ethinitialize * * Description: * Initialize the Ethernet driver for one interface @@ -1278,9 +1278,9 @@ static int lm3s_txavail(struct uip_driver_s *dev) ****************************************************************************/ #if LM3S_NETHCONTROLLERS > 1 -int lm3s_initialize(int intf) +int lm3s_ethinitialize(int intf) #else -static inline int lm3s_initialize(int intf) +static inline int lm3s_ethinitialize(int intf) #endif { struct lm3s_driver_s *priv = &g_lm3sdev[intf]; @@ -1366,7 +1366,7 @@ static inline int lm3s_initialize(int intf) #if LM3S_NETHCONTROLLERS == 1 void up_netinitialize(void) { - (void)lm3s_initialize(0); + (void)lm3s_ethinitialize(0); } #endif diff --git a/nuttx/arch/arm/src/lm3s/lm3s_internal.h b/nuttx/arch/arm/src/lm3s/lm3s_internal.h index 70249a191..b3d6bc379 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_internal.h +++ b/nuttx/arch/arm/src/lm3s/lm3s_internal.h @@ -300,7 +300,7 @@ EXTERN int lm3s_dumpgpio(uint32 pinset, const char *msg); EXTERN int weak_function gpio_irqinitialize(void); /**************************************************************************** - * Function: lm3s_initialize + * Function: lm3s_ethinitialize * * Description: * Initialize the Ethernet driver for one interface. If the LM3S chip @@ -319,22 +319,24 @@ EXTERN int weak_function gpio_irqinitialize(void); ****************************************************************************/ #if LM3S_NETHCONTROLLERS > 1 -EXTERN int lm3s_initialize(int intf); +EXTERN int lm3s_ethinitialize(int intf); #endif /**************************************************************************** * The external functions, lm3s_spiselect and lm3s_spistatus must be provided * by board-specific logic. The are implementations of the select and status * methods SPI interface defined by struct spi_ops_s (see include/nuttx/spi.h). - * All othermethods (including up_spiinitialize()) are provided by common + * All other methods (including up_spiinitialize()) are provided by common * logic. To use this common SPI logic on your board: * - * 1. Provide lm3s_spiselect() and lm3s_spistatus() functions in your - * board-specific logic. This function will perform chip selection and + * 1. Provide logic in lm3s_boardinitialize() to configure SPI chip select + * pins. + * 2. Provide lm3s_spiselect() and lm3s_spistatus() functions in your + * board-specific logic. These functions will perform chip selection and * status operations using GPIOs in the way your board is configured. - * 2. Add a call to up_spiinitialize() in your low level initialization - * logic - * 3. The handle returned by up_spiinitialize() may then be used to bind the + * 3. Add a call to up_spiinitialize() in your low level application + * initialization logic + * 4. The handle returned by up_spiinitialize() may then be used to bind the * SPI driver to higher level logic (e.g., calling * mmcsd_spislotinitialize(), for example, will bind the SPI driver to * the SPI MMC/SD driver). -- cgit v1.2.3