For SAM MCUs, rename up_spiinitialize to sam_spibus_initialize

This commit is contained in:
Gregory Nutt
2016-01-26 13:03:12 -06:00
parent 9f2a839ac3
commit e792b09830
25 changed files with 91 additions and 71 deletions
+5 -5
View File
@@ -86,14 +86,14 @@
************************************************************************************/
/************************************************************************************
* Name: sam_spi_initialize
* Name: sam_spidev_initialize
*
* Description:
* Called to configure SPI chip select PIO pins for the SAMV71-XULT board.
*
************************************************************************************/
void sam_spi_initialize(void)
void sam_spidev_initialize(void)
{
#ifdef CONFIG_SAMV7_SPI0_MASTER
#endif
@@ -119,7 +119,7 @@ void sam_spi_initialize(void)
* o sam_spi[0|1]status and sam_spi[0|1]cmddata: Implementations of the status
* and cmddata methods of the SPI interface defined by struct spi_ops_
* (see include/nuttx/spi/spi.h). All other methods including
* up_spiinitialize()) are provided by common SAM3/4 logic.
* sam_spibus_initialize()) are provided by common SAM3/4 logic.
*
* To use this common SPI logic on your board:
*
@@ -132,9 +132,9 @@ void sam_spi_initialize(void)
* sam_spi[0|1]cmddata() functions in your board-specific logic. This
* function will perform cmd/data selection operations using PIOs in
* the way your board is configured.
* 3. Add a call to up_spiinitialize() in your low level application
* 3. Add a call to sam_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 sam_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).