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 /nuttx/configs/stm32f429i-disco | |
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 'nuttx/configs/stm32f429i-disco')
-rw-r--r-- | nuttx/configs/stm32f429i-disco/src/stm32_boot.c | 2 | ||||
-rw-r--r-- | nuttx/configs/stm32f429i-disco/src/stm32_nsh.c | 5 | ||||
-rw-r--r-- | nuttx/configs/stm32f429i-disco/src/stm32f429i-disco.h | 19 |
3 files changed, 4 insertions, 22 deletions
diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c index 3615d167d..cc72295bc 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_boot.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_boot.c @@ -133,7 +133,7 @@ void board_initialize(void) */ #if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT) - (void)nsh_archinitialize(); + (void)board_app_initialize(); #endif } #endif diff --git a/nuttx/configs/stm32f429i-disco/src/stm32_nsh.c b/nuttx/configs/stm32f429i-disco/src/stm32_nsh.c index 9cff689c7..13c82cfed 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32_nsh.c +++ b/nuttx/configs/stm32f429i-disco/src/stm32_nsh.c @@ -44,6 +44,7 @@ #include <syslog.h> #include <errno.h> +#include <nuttx/board.h> #include <nuttx/kmalloc.h> #ifdef CONFIG_STM32_SPI4 @@ -117,7 +118,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: nsh_archinitialize + * Name: board_app_initialize * * Description: * Perform architecture specific initialization @@ -131,7 +132,7 @@ * ****************************************************************************/ -int nsh_archinitialize(void) +int board_app_initialize(void) { #if defined(HAVE_USBHOST) || defined(HAVE_USBMONITOR) int ret; diff --git a/nuttx/configs/stm32f429i-disco/src/stm32f429i-disco.h b/nuttx/configs/stm32f429i-disco/src/stm32f429i-disco.h index 9a0aaf794..156a2d0e3 100644 --- a/nuttx/configs/stm32f429i-disco/src/stm32f429i-disco.h +++ b/nuttx/configs/stm32f429i-disco/src/stm32f429i-disco.h @@ -220,25 +220,6 @@ void stm32_ledpminitialize(void); void stm32_pmbuttons(void); #endif -/**************************************************************************** - * Name: nsh_archinitialize - * - * Description: - * Perform architecture specific initialization for NSH. - * - * 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(). - * - ****************************************************************************/ - -#ifdef CONFIG_NSH_LIBRARY -int nsh_archinitialize(void); -#endif - #ifdef CONFIG_STM32F429I_DISCO_ILI9341 /**************************************************************************** * Name: stm32_ili93414ws_initialize |