renesas-ra: Consolidate hal_entry.c code and remove hal_entry() func.

The hal_entry.c code is duplicated across all boards, so consolidate it to
a common ra_hal.c file.  And remove the hal_entry() function because it
simply calls main().

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-05-23 10:02:54 +10:00
parent b57b079bbe
commit 324d01eb52
18 changed files with 39 additions and 333 deletions

View File

@@ -297,6 +297,7 @@ DRIVERS_SRC_C += $(addprefix drivers/,\
SRC_C += \
boardctrl.c \
main.c \
ra_hal.c \
ra_it.c \
mphalport.c \
mpthreadport.c \
@@ -325,13 +326,11 @@ SRC_C += \
flashbdev.c \
storage.c \
fatfs_port.c \
$(BOARD_DIR)/src/hal_entry.c \
$(wildcard $(BOARD_DIR)/*.c)
SRC_C += $(addprefix $(BOARD_DIR)/ra_gen/,\
common_data.c \
hal_data.c \
main.c \
pin_data.c \
vector_data.c \
)