summaryrefslogtreecommitdiff
path: root/apps/nshlib/nsh_init.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-31 12:14:16 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-31 12:14:16 -0600
commit50cbc253bcd8a77ebcbd225855f3b2ccb31f6c21 (patch)
treed294f42bc878ea47a5787a8cab0ac96480407a55 /apps/nshlib/nsh_init.c
parent73a89efed06a03f2733c14e42553ad23223f5cad (diff)
downloadpx4-nuttx-50cbc253bcd8a77ebcbd225855f3b2ccb31f6c21.tar.gz
px4-nuttx-50cbc253bcd8a77ebcbd225855f3b2ccb31f6c21.tar.bz2
px4-nuttx-50cbc253bcd8a77ebcbd225855f3b2ccb31f6c21.zip
NSH initialization now calls boardctl(BOARDIOC_INIT) instead of board_app_initaliaze. Modify all configurations: Make sure that CONFIG_LIB_BOARDCTL=y appears wherever CONFIG_NSH_ARCHINIT=y appears. Remove support for CONFIG_NSH_ARCHMAC. It is not used and there are better ways to do that operation
Diffstat (limited to 'apps/nshlib/nsh_init.c')
-rw-r--r--apps/nshlib/nsh_init.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/nshlib/nsh_init.c b/apps/nshlib/nsh_init.c
index ac1863f11..a59c5b323 100644
--- a/apps/nshlib/nsh_init.c
+++ b/apps/nshlib/nsh_init.c
@@ -39,6 +39,7 @@
#include <nuttx/config.h>
+#include <sys/boardctl.h>
#include <apps/nsh.h>
#include "nsh.h"
@@ -93,9 +94,11 @@ void nsh_initialize(void)
(void)nsh_romfsetc();
- /* Perform architecture-specific initialization (if available) */
+#ifdef CONFIG_NSH_ARCHINIT
+ /* Perform architecture-specific initialization (if configured) */
- (void)board_app_initialize();
+ (void)boardctl(BOARDIOC_INIT, 0);
+#endif
/* Bring up the network */