mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
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:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user