For STR71xx MCUs, rename up_spiinitialize to str71_spibus_initialize
This commit is contained in:
parent
3dc852166f
commit
a0a643f144
@ -213,7 +213,7 @@ void up_netinitialize(void)
|
||||
|
||||
/* Get the SPI port */
|
||||
|
||||
spi = up_spiinitialize(ENC28J60_SPI_PORTNO);
|
||||
spi = str71_spibus_initialize(ENC28J60_SPI_PORTNO);
|
||||
if (!spi)
|
||||
{
|
||||
nlldbg("Failed to initialize SPI port %d\n", ENC28J60_SPI_PORTNO);
|
||||
|
@ -47,6 +47,8 @@
|
||||
#include <nuttx/spi/spi.h>
|
||||
#include <nuttx/mmcsd.h>
|
||||
|
||||
#include "str71x.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@ -118,7 +120,7 @@ int board_app_initialize(void)
|
||||
syslog(LOG_INFO, "Initializing SPI port %d\n",
|
||||
CONFIG_NSH_MMCSDSPIPORTNO);
|
||||
|
||||
spi = up_spiinitialize(CONFIG_NSH_MMCSDSPIPORTNO);
|
||||
spi = str71_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
|
||||
if (!spi)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize SPI port %d\n",
|
||||
|
@ -939,7 +939,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t bu
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: up_spiinitialize
|
||||
* Name: str71_spibus_initialize
|
||||
*
|
||||
* Description:
|
||||
* Initialize the selected SPI port. This function could get called
|
||||
@ -953,7 +953,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t bu
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct spi_dev_s *up_spiinitialize(int port)
|
||||
FAR struct spi_dev_s *str71_spibus_initialize(int port)
|
||||
{
|
||||
FAR struct spi_dev_s *ret;
|
||||
#if defined(CONFIG_STR71X_BSPI0) || defined(CONFIG_STR71X_BSPI1)
|
||||
|
Loading…
Reference in New Issue
Block a user