Eagle100: Fix build error in eagle100:nxflat config

This commit is contained in:
Tanushree Baindur 2021-05-25 00:03:32 -05:00 committed by Xiang Xiao
parent 2975050c96
commit 7a49fade03
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ CONFIG_CONSOLE_SYSLOG=y
CONFIG_DISABLE_ENVIRON=y
CONFIG_EXAMPLES_NXFLAT=y
CONFIG_FS_ROMFS=y
CONFIG_LIBM=y
CONFIG_LIB_BOARDCTL=y
CONFIG_MAX_TASKS=16
CONFIG_NXFLAT=y

View File

@ -108,7 +108,9 @@
int board_app_initialize(uintptr_t arg)
{
FAR struct spi_dev_s *spi;
#if defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI)
int ret;
#endif
/* Get the SPI port */
@ -126,6 +128,7 @@ int board_app_initialize(uintptr_t arg)
syslog(LOG_INFO, "Successfully initialized SPI port %d\n",
CONFIG_NSH_MMCSDSPIPORTNO);
#if defined (CONFIG_MMCSD) && defined (CONFIG_MMCSD_SPI)
/* Bind the SPI port to the slot */
syslog(LOG_INFO, "Binding SPI port %d to MMC/SD slot %d\n",
@ -143,5 +146,7 @@ int board_app_initialize(uintptr_t arg)
syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n",
CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO);
#endif
return OK;
}