Squashed commit of the following:

sched/init/nx_start.c:  Add support for CONFIG_BOARD_DRIVER_INITIALIZE.  If this option is selected then nx_start() will call a board-provided function board_driver_initialize() immediately after calling up_initialize().

    Rename CONFIG_BOARD_INITIALIZE to CONFIG_BOARD_LATE_INITIALIZE.

    Raname board_initialize() to board_late_initialize()
This commit is contained in:
Gregory Nutt 2019-02-18 15:32:00 -06:00
parent 77aa1f1179
commit a76e137ce2
329 changed files with 1067 additions and 964 deletions

View File

@ -939,7 +939,7 @@ struct nx_callback_s
<p>
The NX server may be started in your board startup logic by simply calling the function <code> nxmu_start()</code>.
The board startup logic usually resides the the <code>configs/<i>board</i>/src</code> directory.
The boar board startup logic can run automatically during the early system if <code>CONFIG_BOARD_INITIALIZE</code> is defined in the configuration.
The boar board startup logic can run automatically during the early system if <code>CONFIG_BOARD_LATE_INITIALIZE</code> is defined in the configuration.
Or, the board startup logic can execute under control of the application by calling the <code>boardctl(BOARDIOC_INIT, arg)</code> OS interface.
</p>
<p>

View File

@ -314,10 +314,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
************************************************************************************/

View File

@ -82,8 +82,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -70,20 +70,20 @@ void sam_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -79,10 +79,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -118,10 +118,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
************************************************************************************/

View File

@ -82,8 +82,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -92,20 +92,20 @@ void stm32_boardinitialize(void)
}
/************************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional initialization call
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional initialization call
* will be performed in the boot-up sequence to a function called
* board_initialize(). board_initialize() will be called immediately after
* board_late_initialize(). board_late_initialize() will be called immediately after
* up_initialize() is called and just before the initial application is started.
* This additional initialization phase may be used, for example, to initialize
* board-specific device drivers.
*
************************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL)
/* Perform board bring-up here instead of from the board_app_initialize(). */

View File

@ -73,10 +73,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y && CONFIG_NSH_ARCHINIT:
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y && CONFIG_NSH_ARCHINIT:
* Called from the NSH library
*
****************************************************************************/

View File

@ -145,14 +145,14 @@
* Name: stm32l4_bringup
*
* Description:
* Called either by board_intialize() if CONFIG_BOARD_INITIALIZE or by
* Called either by board_intialize() if CONFIG_BOARD_LATE_INITIALIZE or by
* board_app_initialize if CONFIG_LIB_BOARDCTL is selected. This function
* initializes and configures all on-board features appropriate for the
* selected configuration.
*
****************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int stm32l4_bringup(void);
#endif

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return stm32l4_bringup();

View File

@ -81,23 +81,23 @@ void stm32l4_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)stm32l4_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -65,7 +65,7 @@
* Name: stm32l4_bringup
*
* Description:
* Called either by board_intialize() if CONFIG_BOARD_INITIALIZE or by
* Called either by board_intialize() if CONFIG_BOARD_LATE_INITIALIZE or by
* board_app_initialize if CONFIG_LIB_BOARDCTL is selected. This function
* initializes and configures all on-board features appropriate for the
* selected configuration.

View File

@ -8,7 +8,7 @@ CONFIG_ARCH_CHIP_LPC4330FBD144=y
CONFIG_ARCH_CHIP_LPC43XX=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARCH_STDARG_H=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=18535
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -101,20 +101,20 @@ void lpc43_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Configure max31855 driver for SSP0 or SSP1 */

View File

@ -101,20 +101,20 @@ void am335x_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL)
/* Perform NSH initialization here instead of from the NSH. This
@ -125,4 +125,4 @@ void board_initialize(void)
(void)board_app_initialize(0);
#endif
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -7,7 +7,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARM_MPU=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILD_PROTECTED=y
CONFIG_DISABLE_POLL=y

View File

@ -11,7 +11,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_USBDEVCTRL=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -6,7 +6,7 @@ CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_DISABLE_POLL=y

View File

@ -11,7 +11,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_USBDEVCTRL=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -11,7 +11,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_USBDEVCTRL=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -6,7 +6,7 @@ CONFIG_ARCH_CHIP_STM32=y
CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_DISABLE_POLL=y

View File

@ -273,10 +273,10 @@ void weak_function stm32_spidev_initialize(void);
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
************************************************************************************/

View File

@ -66,9 +66,9 @@
* CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
* CONFIG_BOARD_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, &&
* CONFIG_BOARD_LATE_INITIALIZE=y, CONFIG_NSH_LIBRARY=y, &&
* CONFIG_LIB_BOARDCTL=n :
* Called from board_initialize().
* Called from board_late_initialize().
*
* Input Parameters:
* arg - The boardctl() argument is passed to the board_app_initialize()
@ -91,9 +91,9 @@ int board_app_initialize(uintptr_t arg)
{
int ret;
/* Did we already initialize via board_initialize()? */
/* Did we already initialize via board_late_initialize()? */
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
ret = stm32_bringup();
if (ret < 0)
{

View File

@ -98,20 +98,20 @@ void stm32_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization here if so configured */

View File

@ -80,10 +80,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -8,7 +8,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_USBDEVCTRL=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -11,7 +11,7 @@ CONFIG_ARCH_CHIP_STM32F407VG=y
CONFIG_ARCH_IRQBUTTONS=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARDCTL_USBDEVCTRL=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=16717
CONFIG_BUILTIN=y
CONFIG_CDCACM=y

View File

@ -72,11 +72,11 @@
int board_app_initialize(uintptr_t arg)
{
/* If CONFIG_BOARD_INITIALIZE is selected then board initialization was
* already performed in board_initialize.
/* If CONFIG_BOARD_LATE_INITIALIZE is selected then board initialization was
* already performed in board_late_initialize.
*/
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
return tm4c_bringup();
#else
return OK;

View File

@ -93,23 +93,23 @@ void tiva_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intiialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)tm4c_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -6,7 +6,7 @@ CONFIG_ARCH_CHIP_LM3S=y
CONFIG_ARCH_CHIP_LM=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_ARMV7M_TOOLCHAIN_CODESOURCERYW=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=4531
CONFIG_DEV_LOWCONSOLE=y
CONFIG_DISABLE_ENVIRON=y

View File

@ -80,20 +80,20 @@ void efm32_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
}
#endif

View File

@ -80,20 +80,20 @@ void efm32_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
}
#endif

View File

@ -68,10 +68,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library via board_app_initialize()
*
****************************************************************************/

View File

@ -81,8 +81,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -73,20 +73,20 @@ void esp32_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -59,10 +59,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -76,11 +76,11 @@
int board_app_initialize(uintptr_t arg)
{
/* If CONFIG_BOARD_INITIALIZE is selected then board initialization was
* already performed in board_initialize.
/* If CONFIG_BOARD_LATE_INITIALIZE is selected then board initialization was
* already performed in board_late_initialize.
*/
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
return pic32mz_bringup();
#else
return OK;

View File

@ -81,23 +81,23 @@ void pic32mz_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intiialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)pic32mz_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -250,10 +250,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -82,8 +82,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -70,20 +70,20 @@ void sam_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -61,10 +61,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -104,10 +104,10 @@ extern FAR struct i2c_master_s* g_i2c1_dev;
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -90,8 +90,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -81,20 +81,20 @@ void kinetis_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -55,10 +55,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -465,7 +465,7 @@ SD Card Support
Application Configuration -> NSH Library
CONFIG_NSH_ARCHINIT=y : NSH board-initialization, and
CONFIG_LIB_BOARDCTL=y : Or
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
Using the SD card
-----------------

View File

@ -50,7 +50,7 @@ endif
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += k64_appinit.c k64_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += k64_bringup.c
endif

View File

@ -257,7 +257,7 @@ void weak_function k64_usbinitialize(void);
*
************************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int k64_bringup(void);
#endif

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return k64_bringup();

View File

@ -94,24 +94,24 @@ void kinetis_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)k64_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -52,7 +52,7 @@
#include "freedom-k64f.h"
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
/****************************************************************************
* Public Functions
@ -162,4 +162,4 @@ int k64_bringup(void)
return OK;
}
#endif /* CONFIG_LIB_BOARDCTL CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_LIB_BOARDCTL CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -468,7 +468,7 @@ SD Card Support
Application Configuration -> NSH Library
CONFIG_NSH_ARCHINIT=y : NSH board-initialization, and
CONFIG_LIB_BOARDCTL=y : Or
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
Using the SD card
-----------------

View File

@ -51,7 +51,7 @@ endif
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += k66_appinit.c k66_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += k66_bringup.c
endif

View File

@ -285,7 +285,7 @@ void weak_function k66_usbinitialize(void);
*
************************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int k66_bringup(void);
#endif

View File

@ -79,7 +79,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return k66_bringup();

View File

@ -96,24 +96,24 @@ void kinetis_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)k66_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -53,7 +53,7 @@
#include "kinetis_spi.h"
#include "freedom-k66f.h"
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
/****************************************************************************
* Public Functions
@ -172,4 +172,4 @@ int k66_bringup(void)
UNUSED(ret);
return OK;
}
#endif /* CONFIG_LIB_BOARDCTL CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_LIB_BOARDCTL CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -103,20 +103,20 @@ void kl_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform NSH initialization here instead of from the NSH. This
* alternative NSH initialization is necessary when NSH is ran in user-space

View File

@ -95,20 +95,20 @@ void kl_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform NSH initialization here instead of from the NSH. This
* alternative NSH initialization is necessary when NSH is ran in user-space

View File

@ -4,7 +4,7 @@ CONFIG_ARCH_BOARD_IMXRT1050_EVK=y
CONFIG_ARCH_CHIP_IMXRT=y
CONFIG_ARCH_CHIP_MIMXRT1052DVL6A=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=20000
CONFIG_BUILTIN=y
CONFIG_C99_BOOL8=y

View File

@ -44,7 +44,7 @@ endif
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += imxrt_appinit.c imxrt_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += imxrt_bringup.c
endif

View File

@ -187,7 +187,7 @@
*
****************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int imxrt_bringup(void);
#endif

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return imxrt_bringup();

View File

@ -70,23 +70,23 @@ void imxrt_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)imxrt_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -4,7 +4,7 @@ CONFIG_ARCH_BOARD_IMXRT1060_EVK=y
CONFIG_ARCH_CHIP_IMXRT=y
CONFIG_ARCH_CHIP_MIMXRT1062DVL6A=y
CONFIG_ARCH_STACKDUMP=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=20000
CONFIG_BUILTIN=y
CONFIG_C99_BOOL8=y

View File

@ -44,7 +44,7 @@ endif
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += imxrt_appinit.c imxrt_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += imxrt_bringup.c
endif

View File

@ -166,7 +166,7 @@
*
****************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int imxrt_bringup(void);
#endif

View File

@ -79,7 +79,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return imxrt_bringup();

View File

@ -71,23 +71,23 @@ void imxrt_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)imxrt_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -40,7 +40,7 @@ CSRCS = cc1310_boot.c cc1310_pinconfig.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += cc1310_appinit.c cc1310_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += cc1310_bringup.c
endif

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return cc1310_bringup();

View File

@ -87,23 +87,23 @@ void tiva_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)cc1310_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -59,10 +59,10 @@
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -90,10 +90,10 @@ extern const struct cc13xx_pinconfig_s g_gpio_sw2;
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -40,7 +40,7 @@ CSRCS = cc1312_boot.c cc1312_pinconfig.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += cc1312_appinit.c cc1312_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += cc1312_bringup.c
endif

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return cc1312_bringup();

View File

@ -87,23 +87,23 @@ void tiva_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)cc1312_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -59,10 +59,10 @@
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -90,10 +90,10 @@ extern const struct cc13xx_pinconfig_s g_gpio_sw2;
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -72,9 +72,9 @@
#ifdef CONFIG_LIB_BOARDCTL
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform application level board initialization (if that was not already
* done in board_initialize().
* done in board_late_initialize().
*/
tms570_bringup();

View File

@ -83,20 +83,20 @@ void tms570_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform application level board initialization */

View File

@ -7,7 +7,7 @@ CONFIG_ARCH_FLOAT_H=y
CONFIG_ARCH_INTERRUPTSTACK=2048
CONFIG_ARCH_STDARG_H=y
CONFIG_BINFMT_CONSTRUCTORS=y
CONFIG_BOARD_INITIALIZE=y
CONFIG_BOARD_LATE_INITIALIZE=y
CONFIG_BOARD_LOOPSPERMSEC=12061
CONFIG_C99_BOOL8=y
CONFIG_CODECS_HASH_MD5=y

View File

@ -40,7 +40,7 @@ CSRCS = lc823450_boot.c lc823450_mux.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += lc823450_appinit.c lc823450_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += lc823450_bringup.c
endif

View File

@ -82,7 +82,7 @@ int lc823450_adc_setup(void);
*
****************************************************************************/
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_INITIALIZE)
#if defined(CONFIG_LIB_BOARDCTL) || defined(CONFIG_BOARD_LATE_INITIALIZE)
int lc823450_bringup(void);
#endif

View File

@ -180,7 +180,7 @@ int board_app_initialize(uintptr_t arg)
UNUSED(ret); /* May not be used */
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return lc823450_bringup();

View File

@ -50,24 +50,24 @@
****************************************************************************/
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)lc823450_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -76,8 +76,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -81,20 +81,20 @@ void lpc54_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -74,10 +74,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -317,10 +317,10 @@
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=n && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

View File

@ -40,7 +40,7 @@ CSRCS = max326_boot.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += max326_appinit.c max326_bringup.c
else ifeq ($(CONFIG_BOARD_INITIALIZE),y)
else ifeq ($(CONFIG_BOARD_LATE_INITIALIZE),y)
CSRCS += max326_bringup.c
endif

View File

@ -110,10 +110,10 @@
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -78,7 +78,7 @@
int board_app_initialize(uintptr_t arg)
{
#ifndef CONFIG_BOARD_INITIALIZE
#ifndef CONFIG_BOARD_LATE_INITIALIZE
/* Perform board initialization */
return max326_bringup();

View File

@ -83,23 +83,23 @@ void max326_board_initialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_intitialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board initialization */
(void)max326_bringup();
}
#endif /* CONFIG_BOARD_INITIALIZE */
#endif /* CONFIG_BOARD_LATE_INITIALIZE */

View File

@ -67,10 +67,10 @@
* Description:
* Bring up board features.
*
* If CONFIG_BOARD_INITIALIZE=y, then this function will be called from
* board_initialize().
* If CONFIG_BOARD_LATE_INITIALIZE=y, then this function will be called from
* board_late_initialize().
*
* If CONFIG_BOARD_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* If CONFIG_BOARD_LATE_INITIALIZE is not selected, but CONFIG_LIB_BOARDCTL=y
* then this function will *probably* be called from application logic via
* boardctl().
*

View File

@ -82,8 +82,8 @@
int board_app_initialize(uintptr_t arg)
{
#ifdef CONFIG_BOARD_INITIALIZE
/* Board initialization already performed by board_initialize() */
#ifdef CONFIG_BOARD_LATE_INITIALIZE
/* Board initialization already performed by board_late_initialize() */
return OK;
#else

View File

@ -73,20 +73,20 @@ void lpc17_boardinitialize(void)
}
/****************************************************************************
* Name: board_initialize
* Name: board_late_initialize
*
* Description:
* If CONFIG_BOARD_INITIALIZE is selected, then an additional
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
* initialization call will be performed in the boot-up sequence to a
* function called board_initialize(). board_initialize() will be
* function called board_late_initialize(). board_late_initialize() will be
* called immediately after up_initialize() is called and just before the
* initial application is started. This additional initialization phase
* may be used, for example, to initialize board-specific device drivers.
*
****************************************************************************/
#ifdef CONFIG_BOARD_INITIALIZE
void board_initialize(void)
#ifdef CONFIG_BOARD_LATE_INITIALIZE
void board_late_initialize(void)
{
/* Perform board-specific initialization */

View File

@ -324,10 +324,10 @@ static int nsh_usbhostinitialize(void)
* Description:
* Perform architecture-specific initialization
*
* CONFIG_BOARD_INITIALIZE=y :
* Called from board_initialize().
* CONFIG_BOARD_LATE_INITIALIZE=y :
* Called from board_late_initialize().
*
* CONFIG_BOARD_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* CONFIG_BOARD_LATE_INITIALIZE=y && CONFIG_LIB_BOARDCTL=y :
* Called from the NSH library
*
****************************************************************************/

Some files were not shown because too many files have changed in this diff Show More