configs/stm32f4discovery: Building of stm32_appinit.c should not depend on CONFIG_NSH_LIBRARY but on CONFIG_LIB_BOARDCTL.

This commit is contained in:
Gregory Nutt
2018-03-16 12:16:19 -06:00
parent b3aa10c9ff
commit 3a95464153
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ ifeq ($(CONFIG_SENSORS_XEN1210),y)
CSRCS += stm32_xen1210.c
endif
ifeq ($(CONFIG_NSH_LIBRARY),y)
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += stm32_appinit.c
endif
+2 -6
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* config/stm32f4discovery/src/stm32_appinit.c
*
* Copyright (C) 2012, 2014, 2016 Gregory Nutt. All rights reserved.
* Copyright (C) 2012, 2014, 2016, 20018 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -67,7 +67,7 @@
* arg - The boardctl() argument is passed to the board_app_initialize()
* implementation without modification. The argument has no
* meaning to NuttX; the meaning of the argument is a contract
* between the board-specific initalization logic and the
* between the board-specific initialization logic and the
* matching application logic. The value cold be such things as a
* mode enumeration value, a set of DIP switch switch settings, a
* pointer to configuration data read from a file or serial FLASH,
@@ -82,10 +82,6 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_SENSORS_BMP180
stm32_bmp180initialize("/dev/press0");
#endif
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
@@ -107,6 +107,10 @@ int stm32_bringup(void)
#endif
int ret = OK;
#ifdef CONFIG_SENSORS_BMP180
stm32_bmp180initialize("/dev/press0");
#endif
#ifdef CONFIG_SENSORS_BH1750FVI
stm32_bh1750initialize("/dev/light0");
#endif