For LPC2148 MCUs, rename up_spiinitialize to lpc214x_spibus_initialize

This commit is contained in:
Gregory Nutt 2016-01-27 08:06:52 -06:00
parent 45e471354b
commit 2a6198d5d1
6 changed files with 8 additions and 8 deletions

View File

@ -94,7 +94,7 @@ int composite_archinitialize(void)
syslog(LOG_INFO, "Initializing SPI port %d\n", LPC214X_MMCSDSPIPORTNO);
spi = up_spiinitialize(LPC214X_MMCSDSPIPORTNO);
spi = lpc214x_spibus_initialize(LPC214X_MMCSDSPIPORTNO);
if (!spi)
{
syslog(LOG_ERR, "ERROR: Failed to initialize SPI port %d\n",

View File

@ -116,7 +116,7 @@ int board_app_initialize(void)
syslog(LOG_INFO, "Initializing SPI port %d\n",
CONFIG_NSH_MMCSDSPIPORTNO);
spi = up_spiinitialize(CONFIG_NSH_MMCSDSPIPORTNO);
spi = lpc214x_spibus_initialize(CONFIG_NSH_MMCSDSPIPORTNO);
if (!spi)
{
syslog(LOG_ERR, "ERROR: Failed to initialize SPI port %d\n",

View File

@ -527,7 +527,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
****************************************************************************/
/****************************************************************************
* Name: up_spiinitialize
* Name: lpc214x_spibus_initialize
*
* Description:
* Initialize the selected SPI port
@ -540,7 +540,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
*
****************************************************************************/
FAR struct spi_dev_s *up_spiinitialize(int port)
FAR struct spi_dev_s *lpc214x_spibus_initialize(int port)
{
uint32_t regval32;
uint8_t regval8;

View File

@ -94,7 +94,7 @@ int usbmsc_archinitialize(void)
syslog(LOG_INFO, "Initializing SPI port %d\n",
LPC214X_MMCSDSPIPORTNO);
spi = up_spiinitialize(LPC214X_MMCSDSPIPORTNO);
spi = lpc214x_spibus_initialize(LPC214X_MMCSDSPIPORTNO);
if (!spi)
{
syslog(LOG_ERR, "ERROR: Failed to initialize SPI port %d\n",

View File

@ -571,7 +571,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
****************************************************************************/
/****************************************************************************
* Name: up_spiinitialize
* Name: lpc214x_spibus_initialize
*
* Description:
* Initialize the selected SPI port
@ -584,7 +584,7 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR void *buffer, size_t nw
*
****************************************************************************/
FAR struct spi_dev_s *up_spiinitialize(int port)
FAR struct spi_dev_s *lpc214x_spibus_initialize(int port)
{
uint32_t regval32;
uint8_t regval8;

View File

@ -156,7 +156,7 @@ FAR struct lcd_dev_s *board_graphics_setup(unsigned int devno)
/* Get the SPI1 port interface */
spi = up_spiinitialize(1);
spi = lpc214x_spibus_initialize(1);
if (!spi)
{
lcddbg("Failed to initialize SPI port 1\n");