diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 10:21:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 10:21:31 -0600 |
commit | 3c44ece6be1f1f021dedb02dbeb638c45f42ce0d (patch) | |
tree | 3bd0719d123e25bc0778369bb0705c1220ba6a2f /apps/nshlib | |
parent | ac77cce3913f23574d31a16c562bab35743af25a (diff) | |
download | px4-nuttx-3c44ece6be1f1f021dedb02dbeb638c45f42ce0d.tar.gz px4-nuttx-3c44ece6be1f1f021dedb02dbeb638c45f42ce0d.tar.bz2 px4-nuttx-3c44ece6be1f1f021dedb02dbeb638c45f42ce0d.zip |
Rename arch_nshinitialize() to board_app_initialize()
Diffstat (limited to 'apps/nshlib')
-rw-r--r-- | apps/nshlib/Kconfig | 3 | ||||
-rw-r--r-- | apps/nshlib/README.txt | 6 | ||||
-rw-r--r-- | apps/nshlib/nsh.h | 4 | ||||
-rw-r--r-- | apps/nshlib/nsh_init.c | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/apps/nshlib/Kconfig b/apps/nshlib/Kconfig index 1bdd597d1..f149055b0 100644 --- a/apps/nshlib/Kconfig +++ b/apps/nshlib/Kconfig @@ -798,9 +798,10 @@ endmenu # USB Device Trace Support config NSH_ARCHINIT bool "Have architecture-specific initialization" default n + select LIB_BOARDCTL ---help--- Set if your board provides architecture specific initialization - via the board-specific function nsh_archinitialize(). This + via the board-interface function boardctl(). The boardctl() function will be called early in NSH initialization to allow board logic to do such things as configure MMC/SD slots. diff --git a/apps/nshlib/README.txt b/apps/nshlib/README.txt index 970d6e250..9da35acff 100644 --- a/apps/nshlib/README.txt +++ b/apps/nshlib/README.txt @@ -1258,9 +1258,9 @@ NSH-Specific Configuration Settings * CONFIG_NSH_ARCHINIT Set if your board provides architecture specific initialization - via the board-specific function nsh_archinitialize(). This - function will be called early in NSH initialization to allow - board logic to do such things as configure MMC/SD slots. + via the board-interface function boardctl(). This function will + be called early in NSH initialization to allow board logic to + do such things as configure MMC/SD slots. If Telnet is selected for the NSH console, then we must configure the resources used by the Telnet daemon and by the Telnet clients. diff --git a/apps/nshlib/nsh.h b/apps/nshlib/nsh.h index eccf5c23d..f9f5e1468 100644 --- a/apps/nshlib/nsh.h +++ b/apps/nshlib/nsh.h @@ -773,9 +773,9 @@ int nsh_loginscript(FAR struct nsh_vtbl_s *vtbl); /* Architecture-specific initialization */ #ifdef CONFIG_NSH_ARCHINIT -int nsh_archinitialize(void); +int board_app_initialize(void); #else -# define nsh_archinitialize() (-ENOSYS) +# define board_app_initialize() (-ENOSYS) #endif #ifdef CONFIG_NSH_ARCHMAC diff --git a/apps/nshlib/nsh_init.c b/apps/nshlib/nsh_init.c index c9b6a8578..ac1863f11 100644 --- a/apps/nshlib/nsh_init.c +++ b/apps/nshlib/nsh_init.c @@ -95,7 +95,7 @@ void nsh_initialize(void) /* Perform architecture-specific initialization (if available) */ - (void)nsh_archinitialize(); + (void)board_app_initialize(); /* Bring up the network */ |