Skip to content

Commit 324d01e

Browse files
committed
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>
1 parent b57b079 commit 324d01e

File tree

18 files changed

+39
-333
lines changed

18 files changed

+39
-333
lines changed

ports/renesas-ra/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ DRIVERS_SRC_C += $(addprefix drivers/,\
297297
SRC_C += \
298298
boardctrl.c \
299299
main.c \
300+
ra_hal.c \
300301
ra_it.c \
301302
mphalport.c \
302303
mpthreadport.c \
@@ -325,13 +326,11 @@ SRC_C += \
325326
flashbdev.c \
326327
storage.c \
327328
fatfs_port.c \
328-
$(BOARD_DIR)/src/hal_entry.c \
329329
$(wildcard $(BOARD_DIR)/*.c)
330330

331331
SRC_C += $(addprefix $(BOARD_DIR)/ra_gen/,\
332332
common_data.c \
333333
hal_data.c \
334-
main.c \
335334
pin_data.c \
336335
vector_data.c \
337336
)

ports/renesas-ra/boards/EK_RA4M1/ra_gen/hal_data.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ extern const flash_cfg_t g_flash0_cfg;
2727
void NULL(flash_callback_args_t *p_args);
2828
#endif
2929

30-
void hal_entry(void);
31-
3230
FSP_FOOTER
3331
#endif /* HAL_DATA_H_ */

ports/renesas-ra/boards/EK_RA4M1/ra_gen/main.c

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

ports/renesas-ra/boards/EK_RA4M1/src/hal_entry.c

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

ports/renesas-ra/boards/EK_RA4W1/ra_gen/hal_data.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ extern const flash_cfg_t g_flash0_cfg;
2727
void NULL(flash_callback_args_t *p_args);
2828
#endif
2929

30-
void hal_entry(void);
31-
3230
FSP_FOOTER
3331
#endif /* HAL_DATA_H_ */

ports/renesas-ra/boards/EK_RA4W1/ra_gen/main.c

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

ports/renesas-ra/boards/EK_RA4W1/src/hal_entry.c

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

ports/renesas-ra/boards/EK_RA6M1/ra_gen/hal_data.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ extern const flash_cfg_t g_flash0_cfg;
2727
void NULL(flash_callback_args_t *p_args);
2828
#endif
2929

30-
void hal_entry(void);
31-
3230
FSP_FOOTER
3331
#endif /* HAL_DATA_H_ */

ports/renesas-ra/boards/EK_RA6M1/ra_gen/main.c

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

ports/renesas-ra/boards/EK_RA6M1/src/hal_entry.c

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy