mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:04:17 +08:00
Olimexino STM32: Fix some build issues
This commit is contained in:
@@ -42,8 +42,8 @@ ifeq ($(CONFIG_CAN),y)
|
|||||||
CSRCS += stm32_can.c
|
CSRCS += stm32_can.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_NSH_LIBRARY),y)
|
ifeq ($(CONFIG_LIB_BOARDCTL),y)
|
||||||
CSRCS += stm32_nsh.c
|
CSRCS += stm32_appinit.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
|
ifeq ($(CONFIG_HAVE_CXXINITIALIZE),y)
|
||||||
|
|||||||
+5
-3
@@ -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.
|
* Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@@ -87,14 +87,16 @@ int board_app_initialize(void)
|
|||||||
{
|
{
|
||||||
int ret = OK;
|
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)
|
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_SYSTEM_USBMSC)
|
||||||
ret = usbmsc_archinitialize();
|
ret = usbmsc_archinitialize();
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_USBDEV_COMPOSITE
|
||||||
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_SYSTEM_COMPOSITE)
|
#if !defined(CONFIG_NSH_BUILTIN_APPS) && !defined(CONFIG_SYSTEM_COMPOSITE)
|
||||||
ret = composite_archinitialize();
|
ret = composite_archinitialize();
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
int composite_archinitialize(void)
|
int composite_archinitialize(void)
|
||||||
{
|
{
|
||||||
/* If system/composite is built as an NSH command, then SD slot should
|
/* 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.
|
* In this case, there is nothing further to be done here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
int usbmsc_archinitialize(void)
|
int usbmsc_archinitialize(void)
|
||||||
{
|
{
|
||||||
/* If system/usbmsc is built as an NSH command, then SD slot should
|
/* 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.
|
* In this case, there is nothing further to be done here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user