mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
For NUC1xx MCUs, rename up_spiinitialize to nuc_spibus_initialize
This commit is contained in:
@@ -72,13 +72,13 @@
|
|||||||
void nuc_boardinitialize(void)
|
void nuc_boardinitialize(void)
|
||||||
{
|
{
|
||||||
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SPI is not disabled, and 2) the weak function
|
||||||
* nuc_spiinitialize() has been brought into the link.
|
* nuc_spidev_initialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_NUC1XX_SPI1) || defined(CONFIG_NUC1XX_SPI2) || defined(CONFIG_NUC1XX_SPI3)
|
#if defined(CONFIG_NUC1XX_SPI1) || defined(CONFIG_NUC1XX_SPI2) || defined(CONFIG_NUC1XX_SPI3)
|
||||||
if (nuc_spiinitialize)
|
if (nuc_spidev_initialize)
|
||||||
{
|
{
|
||||||
nuc_spiinitialize();
|
nuc_spidev_initialize();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -91,14 +91,14 @@
|
|||||||
****************************************************************************************************/
|
****************************************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Name: nuc_spiinitialize
|
* Name: nuc_spidev_initialize
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Called to configure SPI chip select GPIO pins for the NuTiny-EVB-120 board.
|
* Called to configure SPI chip select GPIO pins for the NuTiny-EVB-120 board.
|
||||||
*
|
*
|
||||||
****************************************************************************************************/
|
****************************************************************************************************/
|
||||||
|
|
||||||
void weak_function nuc_spiinitialize(void);
|
void weak_function nuc_spidev_initialize(void);
|
||||||
|
|
||||||
/****************************************************************************************************
|
/****************************************************************************************************
|
||||||
* Name: nuc_usbinitialize
|
* Name: nuc_usbinitialize
|
||||||
|
|||||||
Reference in New Issue
Block a user