From 6f1d62e4cc88e08d76c794e01d944d99e7b2dc2e Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 24 Nov 2014 12:33:24 -0600 Subject: [PATCH] =?UTF-8?q?Nucleo=20F4x1RE:=20=20Stangeness=20in=20initial?= =?UTF-8?q?ization=20noted=20by=20S=C3=A9bastien=20Lorquet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/nucleo-f4x1re/src/stm32_boot.c | 5 +++++ configs/spark/src/up_boot.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/configs/nucleo-f4x1re/src/stm32_boot.c b/configs/nucleo-f4x1re/src/stm32_boot.c index 92f17e4892..d9962a8ee8 100644 --- a/configs/nucleo-f4x1re/src/stm32_boot.c +++ b/configs/nucleo-f4x1re/src/stm32_boot.c @@ -121,6 +121,11 @@ void board_initialize(void) #if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT) nsh_archinitialize(); +#endif + + /* CC3000 wireless initialization */ + +#ifdef CONFIG_WL_CC3000 wireless_archinitialize(0); #endif } diff --git a/configs/spark/src/up_boot.c b/configs/spark/src/up_boot.c index f0199a6fcb..939b8cee91 100644 --- a/configs/spark/src/up_boot.c +++ b/configs/spark/src/up_boot.c @@ -124,11 +124,14 @@ void board_initialize(void) */ #if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT) - nsh_archinitialize(); - wireless_archinitialize(0); - + nsh_archinitialize(); #endif + /* CC3000 wireless initialization */ + +#ifdef CONFIG_WL_CC3000 + wireless_archinitialize(0); +#endif } #endif