For M9S12 MCUs, rename up_spiinitialize to hcs12_spibus_initialize

This commit is contained in:
Gregory Nutt 2016-01-27 09:11:08 -06:00
parent a0a643f144
commit d152724d2a
6 changed files with 20 additions and 20 deletions

View File

@ -64,14 +64,14 @@
************************************************************************************/
/************************************************************************************
* Name: hcs12_spiinitialize
* Name: hcs12_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the STM3210E-EVAL board.
*
************************************************************************************/
void weak_function hcs12_spiinitialize(void);
void weak_function hcs12_spidev_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_DEMO9S12NE64_SRC_DEMO9S12NE64_H */

View File

@ -71,13 +71,13 @@
void hcs12_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* hcs12_spiinitialize() has been brought into the link.
* hcs12_spidev_initialize() has been brought into the link.
*/
#if defined(CONFIG_INCLUDE_HCS12_ARCH_SPI)
if (hcs12_spiinitialize)
if (hcs12_spidev_initialize)
{
hcs12_spiinitialize();
hcs12_spidev_initialize();
}
#endif

View File

@ -81,14 +81,14 @@
************************************************************************************/
/************************************************************************************
* Name: hcs12_spiinitialize
* Name: hcs12_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the DEMO9S12NE64 board.
*
************************************************************************************/
void weak_function hcs12_spiinitialize(void)
void weak_function hcs12_spidev_initialize(void)
{
}
@ -99,7 +99,7 @@ void weak_function hcs12_spiinitialize(void)
* The external functions, hcs12_spiselect and hcs12_spistatus must be
* provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* include/nuttx/spi/spi.h). All other methods (including hcs12_spibus_initialize())
* are provided by common HCS12 logic. To use this common SPI logic on your
* board:
*
@ -108,9 +108,9 @@ void weak_function hcs12_spiinitialize(void)
* 2. Provide hcs12_spiselect() and hcs12_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.
* 3. Add a calls to up_spiinitialize() in your low level application
* 3. Add a calls to hcs12_spibus_initialize() in your low level application
* initialization logic
* 4. The handle returned by up_spiinitialize() may then be used to bind the
* 4. The handle returned by hcs12_spibus_initialize() 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).

View File

@ -71,13 +71,13 @@
void hcs12_boardinitialize(void)
{
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
* hcs12_spiinitialize() has been brought into the link.
* hcs12_spidev_initialize() has been brought into the link.
*/
#if defined(CONFIG_INCLUDE_HCS12_ARCH_SPI)
if (hcs12_spiinitialize)
if (hcs12_spidev_initialize)
{
hcs12_spiinitialize();
hcs12_spidev_initialize();
}
#endif

View File

@ -81,14 +81,14 @@
************************************************************************************/
/************************************************************************************
* Name: hcs12_spiinitialize
* Name: hcs12_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the NE64 Badge board.
*
************************************************************************************/
void weak_function hcs12_spiinitialize(void)
void weak_function hcs12_spidev_initialize(void)
{
}
@ -99,7 +99,7 @@ void weak_function hcs12_spiinitialize(void)
* The external functions, hcs12_spiselect and hcs12_spistatus must be
* provided by board-specific logic. They are implementations of the select
* and status methods of the SPI interface defined by struct spi_ops_s (see
* include/nuttx/spi/spi.h). All other methods (including up_spiinitialize())
* include/nuttx/spi/spi.h). All other methods (including hcs12_spibus_initialize())
* are provided by common HCS12 logic. To use this common SPI logic on your
* board:
*
@ -108,9 +108,9 @@ void weak_function hcs12_spiinitialize(void)
* 2. Provide hcs12_spiselect() and hcs12_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.
* 3. Add a calls to up_spiinitialize() in your low level application
* 3. Add a calls to hcs12_spibus_initialize() in your low level application
* initialization logic
* 4. The handle returned by up_spiinitialize() may then be used to bind the
* 4. The handle returned by hcs12_spibus_initialize() 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).

View File

@ -178,14 +178,14 @@
************************************************************************************/
/************************************************************************************
* Name: hcs12_spiinitialize
* Name: hcs12_spidev_initialize
*
* Description:
* Called to configure SPI chip select GPIO pins for the STM3210E-EVAL board.
*
************************************************************************************/
void weak_function hcs12_spiinitialize(void);
void weak_function hcs12_spidev_initialize(void);
#endif /* __ASSEMBLY__ */
#endif /* __CONFIGS_NE64BADGE_SRC_NE64BADGE_H */