mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
boards/avr/avrdx/breadxavr: provide board_late_initialize
This patch amends commitf077c0321dwhich is a part of series that changed (in commit48db502daf) default value of BOARD_LATE_INITIALIZE to yes. With this change, the boards are required to provide board_late_initialize function. Commitf077c0321dadded this function to many AVR boards but not to this one, making the build with default configuration fail. This patch rectifies that and provides an empty function. With this patch applied, the build no longer fails. Signed-off-by: Kerogit <kr.git@kerogit.eu>
This commit is contained in:
parent
d866153a25
commit
ce0e715254
2 changed files with 30 additions and 5 deletions
|
|
@ -22,16 +22,12 @@
|
|||
|
||||
include $(TOPDIR)/Make.defs
|
||||
|
||||
CSRCS = avrdx_boot.c
|
||||
CSRCS = avrdx_boot.c avrdx_init.c
|
||||
|
||||
ifeq ($(CONFIG_ARCH_LEDS),y)
|
||||
CSRCS += avr_leds.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BOARD_EARLY_INITIALIZE),y)
|
||||
CSRCS += avrdx_init.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BREADXAVR_BUTTONS_DRIVER),y)
|
||||
CSRCS += avrdx_buttons.c
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -89,3 +89,32 @@ void board_early_initialize(void)
|
|||
}
|
||||
|
||||
#endif /* CONFIG_BOARD_EARLY_INITIALIZE */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_late_initialize
|
||||
*
|
||||
* Description:
|
||||
* Excerpt from Kconfig:
|
||||
*
|
||||
* If CONFIG_BOARD_LATE_INITIALIZE is set, board_late_initialize() is
|
||||
* called after up_initialize() just before the main application is
|
||||
* started. It can be used to initialize more complex, board-specific
|
||||
* device drivers.
|
||||
*
|
||||
* Function runs on a temporary, internal kernel thread and can therefore
|
||||
* wait for events.
|
||||
*
|
||||
* Currently, the board has no need for this function but the Kconfig
|
||||
* option is enabled by default so the function either needs to be defined,
|
||||
* or default configuration needs to be changed. This is why this function
|
||||
* exists but is empty.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_BOARD_LATE_INITIALIZE
|
||||
|
||||
void board_late_initialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_BOARD_LATE_INITIALIZE */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue