diff options
Diffstat (limited to 'nuttx/configs/stm32f4discovery/src/up_nsh.c')
-rw-r--r-- | nuttx/configs/stm32f4discovery/src/up_nsh.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nuttx/configs/stm32f4discovery/src/up_nsh.c b/nuttx/configs/stm32f4discovery/src/up_nsh.c index 2e78a58d8..b395d660d 100644 --- a/nuttx/configs/stm32f4discovery/src/up_nsh.c +++ b/nuttx/configs/stm32f4discovery/src/up_nsh.c @@ -101,13 +101,13 @@ /* Debug ********************************************************************/ #ifdef CONFIG_CPP_HAVE_VARARGS -# ifdef CONFIG_DEBUG +# if defined(CONFIG_DEBUG) || !defined(CONFIG_NSH_ARCHINIT) # define message(...) lowsyslog(__VA_ARGS__) # else # define message(...) printf(__VA_ARGS__) # endif #else -# ifdef CONFIG_DEBUG +# if defined(CONFIG_DEBUG) || !defined(CONFIG_NSH_ARCHINIT) # define message lowsyslog # else # define message printf @@ -124,6 +124,13 @@ * Description: * Perform architecture specific initialization * + * CONFIG_NSH_ARCHINIT=y : + * Called from the NSH library + * + * CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, && + * CONFIG_NSH_ARCHINIT=n : + * Called from board_initialize(). + * ****************************************************************************/ int nsh_archinitialize(void) |