For LPC17xx MCUs, rename lpc17_spiinitialize to lpc17_spibus_initialize

This commit is contained in:
Gregory Nutt 2016-01-26 17:07:47 -06:00
parent cc68a24972
commit 6305c4274a
2 changed files with 10 additions and 7 deletions

View File

@ -525,7 +525,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
****************************************************************************/
/****************************************************************************
* Name: lpc17_spiinitialize
* Name: lpc17_spibus_initialize
*
* Description:
* Initialize the selected SPI port.
@ -538,7 +538,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
*
****************************************************************************/
FAR struct spi_dev_s *lpc17_spiinitialize(int port)
FAR struct spi_dev_s *lpc17_spibus_initialize(int port)
{
FAR struct lpc17_spidev_s *priv = &g_spidev;
irqstate_t flags;

View File

@ -70,8 +70,11 @@ extern "C"
* Public Functions
************************************************************************************/
struct spi_dev_s; /* Forward reference */
enum spi_dev_e; /* Forward reference */
/************************************************************************************
* Name: lpc17_spiinitialize
* Name: lpc17_spibus_initialize
*
* Description:
* Initialize the selected SPI port.
@ -84,7 +87,7 @@ extern "C"
*
************************************************************************************/
FAR struct spi_dev_s *lpc17_spiinitialize(int port);
FAR struct spi_dev_s *lpc17_spibus_initialize(int port);
/************************************************************************************
* Name: lpc17_spiselect, lpc17_status, and lpc17_spicmddata
@ -93,7 +96,7 @@ FAR struct spi_dev_s *lpc17_spiinitialize(int port);
* These external functions must be provided by board-specific logic. They are
* implementations of the select, status, and cmddata methods of the SPI interface
* defined by struct spi_ops_s (see include/nuttx/spi/spi.h). All other methods
* including lpc17_spiinitialize()) are provided by common LPC17xx logic. To use
* including lpc17_spibus_initialize()) are provided by common LPC17xx logic. To use
* this common SPI logic on your board:
*
* 1. Provide logic in lpc17_boardinitialize() to configure SPI chip select pins.
@ -104,9 +107,9 @@ FAR struct spi_dev_s *lpc17_spiinitialize(int port);
* lpc17_spicmddata() functions in your board-specific logic. This function
* will perform cmd/data selection operations using GPIOs in the way your
* board is configured.
* 3. Add a call to lpc17_spiinitialize() in your low level application
* 3. Add a call to lpc17_spibus_initialize() in your low level application
* initialization logic
* 4. The handle returned by lpc17_spiinitialize() may then be used to bind the
* 4. The handle returned by lpc17_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).
*