summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/configs/stm32f4discovery/src/stm32_nsh.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/nuttx/configs/stm32f4discovery/src/stm32_nsh.c b/nuttx/configs/stm32f4discovery/src/stm32_nsh.c
index 3692071bb..037fced44 100644
--- a/nuttx/configs/stm32f4discovery/src/stm32_nsh.c
+++ b/nuttx/configs/stm32f4discovery/src/stm32_nsh.c
@@ -64,11 +64,13 @@
int nsh_archinitialize(void)
{
-#ifndef CONFIG_BOARD_INITIALIZE
+#ifdef CONFIG_BOARD_INITIALIZE
+ /* Board initialization already performed by board_initialize() */
+
+ return OK;
+#else
/* Perform board-specific initialization */
- (void)stm32_bringup();
+ return stm32_bringup();
#endif
-
- return OK;
}