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

This commit is contained in:
Gregory Nutt
2015-03-31 12:14:16 -06:00
parent 22c7d705a3
commit 9fcd34f1c4
4 changed files with 8 additions and 34 deletions

View File

@@ -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 */