Olimexino STM32: Fix some build issues

This commit is contained in:
Gregory Nutt 2015-09-08 13:57:55 -06:00
parent 89a23cbb86
commit be1fc59cc5
4 changed files with 9 additions and 7 deletions

View File

@ -42,8 +42,8 @@ ifeq ($(CONFIG_CAN),y)
CSRCS += stm32_can.c
endif
ifeq ($(CONFIG_NSH_LIBRARY),y)
CSRCS += stm32_nsh.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += stm32_appinit.c
endif
ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)

View File

@ -1,5 +1,5 @@
/************************************************************************************
* configs/olimexino-stm32/src/stm32_nss.c
* configs/olimexino-stm32/src/stm32_appinit.c
*
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
@ -87,14 +87,16 @@ int board_app_initialize(void)
{
int ret = OK;
/* Initialize SPI-based microSD if the apps are not installed*/
#ifdef CONFIG_USBMSC
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_SYSTEM_USBMSC)
ret = usbmsc_archinitialize();
#endif
#endif
#ifdef CONFIG_USBDEV_COMPOSITE
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_SYSTEM_COMPOSITE)
ret = composite_archinitialize();
#endif
#endif
return ret;

View File

@ -91,7 +91,7 @@
int composite_archinitialize(void)
{
/* If system/composite is built as an NSH command, then SD slot should
* already have been initialized in board_app_initialize() (see stm32_nsh.c).
* already have been initialized in board_app_initialize() (see stm32_appinit.c).
* In this case, there is nothing further to be done here.
*/

View File

@ -93,7 +93,7 @@
int usbmsc_archinitialize(void)
{
/* If system/usbmsc is built as an NSH command, then SD slot should
* already have been initialized in board_app_initialize() (see stm32_nsh.c).
* already have been initialized in board_app_initialize() (see stm32_appinit.c).
* In this case, there is nothing further to be done here.
*/