For LPC2148 MCUs, rename up_spiinitialize to lpc214x_spibus_initialize
This commit is contained in:
parent
45e471354b
commit
2a6198d5d1
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user