Skip to content

Commit 5d3ef0d

Browse files
committed
boards/arm: Replace board_app_initialize
Replaced board_app_initialize logic with board_late_initialize. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
1 parent ac16244 commit 5d3ef0d

878 files changed

Lines changed: 6416 additions & 26657 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

boards/arm/a1x/pcduino-a10/src/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ include $(TOPDIR)/Make.defs
2424

2525
CSRCS = a1x_boot.c a1x_bringup.c a1x_leds.c
2626

27-
ifeq ($(CONFIG_BOARDCTL),y)
28-
CSRCS += a1x_appinit.c
29-
endif
30-
3127
ifeq ($(CONFIG_ARCH_BUTTONS),y)
3228
CSRCS += a1x_buttons.c
3329
endif

boards/arm/a1x/pcduino-a10/src/a1x_appinit.c

Lines changed: 0 additions & 80 deletions
This file was deleted.

boards/arm/am335x/beaglebone-black/src/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222

2323
set(SRCS am335x_boot.c am335x_bringup.c am335x_leds.c)
2424

25-
if(CONFIG_BOARDCTL)
26-
list(APPEND SRCS am335x_appinit.c)
27-
endif()
28-
2925
if(CONFIG_ARCH_BUTTONS)
3026
list(APPEND SRCS am335x_buttons.c)
3127
endif()

boards/arm/am335x/beaglebone-black/src/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ include $(TOPDIR)/Make.defs
2424

2525
CSRCS = am335x_boot.c am335x_bringup.c am335x_leds.c
2626

27-
ifeq ($(CONFIG_BOARDCTL),y)
28-
CSRCS += am335x_appinit.c
29-
endif
30-
3127
ifeq ($(CONFIG_ARCH_BUTTONS),y)
3228
CSRCS += am335x_buttons.c
3329
endif

boards/arm/am335x/beaglebone-black/src/am335x_appinit.c

Lines changed: 0 additions & 78 deletions
This file was deleted.

boards/arm/at32/at32f437-mini/src/Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ include $(TOPDIR)/Make.defs
2424

2525
CSRCS = at32_boot.c at32_bringup.c
2626

27-
ifeq ($(CONFIG_BOARDCTL),y)
28-
CSRCS += at32_appinit.c
29-
endif
30-
3127
ifeq ($(CONFIG_DEV_GPIO),y)
3228
CSRCS += at32_gpio.c
3329
endif

boards/arm/at32/at32f437-mini/src/at32_appinit.c

Lines changed: 0 additions & 78 deletions
This file was deleted.

boards/arm/csk6/csk6011a-nano/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
# ##############################################################################
2222

23-
set(SRCS csk6011a_nano_appinit.c)
23+
set(SRCS csk6011a_nano_boardinit.c)
2424

2525
target_sources(board PRIVATE ${SRCS})
2626

boards/arm/csk6/csk6011a-nano/src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
include $(TOPDIR)/Make.defs
2424

25-
CSRCS = csk6011a_nano_appinit.c
25+
CSRCS = csk6011a_nano_boardinit.c
2626

2727
include $(TOPDIR)/boards/Board.mk

boards/arm/csk6/csk6011a-nano/src/csk6011a_nano_appinit.c renamed to boards/arm/csk6/csk6011a-nano/src/csk6011a_nano_boardinit.c

Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* boards/arm/csk6/csk6011a-nano/src/csk6011a_nano_appinit.c
2+
* boards/arm/csk6/csk6011a-nano/src/csk6011a_nano_boardinit.c
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -60,46 +60,23 @@ static const char verification_table[] VERIFICATION_TABLE_ATTR =
6060
****************************************************************************/
6161

6262
/****************************************************************************
63-
* Name: board_app_initialize
63+
* Name: board_late_initialize
6464
*
6565
* Description:
66-
* Perform application specific initialization. This function is never
67-
* called directly from application code, but only indirectly via the
68-
* (non-standard) boardctl() interface using the command BOARDIOC_INIT.
69-
*
70-
* Input Parameters:
71-
* arg - The boardctl() argument is passed to the board_app_initialize()
72-
* implementation without modification. The argument has no
73-
* meaning to NuttX; the meaning of the argument is a contract
74-
* between the board-specific initialization logic and the
75-
* matching application logic. The value could be such things as a
76-
* mode enumeration value, a set of DIP switch switch settings, a
77-
* pointer to configuration data read from a file or serial FLASH,
78-
* or whatever you would like to do with it. Every implementation
79-
* should accept zero/NULL as a default configuration.
80-
*
81-
* Returned Value:
82-
* Zero (OK) is returned on success; a negated errno value is returned on
83-
* any failure to indicate the nature of the failure.
66+
* If CONFIG_BOARD_LATE_INITIALIZE is selected, then an additional
67+
* initialization call will be performed in the boot-up sequence to a
68+
* function called board_late_initialize(). board_late_initialize() will be
69+
* called immediately after up_intitialize() is called and just before the
70+
* initial application is started. This additional initialization phase
71+
* may be used, for example, to initialize board-specific device drivers.
8472
*
8573
****************************************************************************/
8674

87-
int board_app_initialize(uintptr_t arg)
88-
{
89-
/* Perform board-specific initialization */
90-
91-
/* TODO */
92-
93-
return OK;
94-
}
95-
9675
#ifdef CONFIG_BOARD_LATE_INITIALIZE
97-
9876
void board_late_initialize(void)
9977
{
10078
/* Perform board-specific initialization */
10179

10280
/* TODO */
10381
}
104-
10582
#endif

0 commit comments

Comments
 (0)