boards/arm/stm32/nucleo-f4x1re/src/stm32_boot.c: Fix some erroneous conditional compilation in board_late_initialize().
This commit is contained in:
parent
7218f6431c
commit
dc3ae12545
@ -76,7 +76,11 @@
|
|||||||
|
|
||||||
int board_app_initialize(uintptr_t arg)
|
int board_app_initialize(uintptr_t arg)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_BOARD_LATE_INITIALIZE
|
||||||
|
return OK;
|
||||||
|
#else
|
||||||
/* Perform board initialization here */
|
/* Perform board initialization here */
|
||||||
|
|
||||||
return stm32_bringup();
|
return stm32_bringup();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -107,10 +107,8 @@ void stm32_boardinitialize(void)
|
|||||||
#ifdef CONFIG_BOARD_LATE_INITIALIZE
|
#ifdef CONFIG_BOARD_LATE_INITIALIZE
|
||||||
void board_late_initialize(void)
|
void board_late_initialize(void)
|
||||||
{
|
{
|
||||||
#ifndef CONFIG_LIB_BOARDCTL
|
|
||||||
/* Perform board initialization here instead of from the board_app_initialize(). */
|
/* Perform board initialization here instead of from the board_app_initialize(). */
|
||||||
|
|
||||||
(void)stm32_bringup();
|
(void)stm32_bringup();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user