2022-03-09 12:58:15 +00:00
|
|
|
DEPS_SUBMODULES += hw/mcu/renesas/fsp lib/CMSIS_5
|
|
|
|
|
|
|
|
# Cross Compiler for RA
|
|
|
|
CROSS_COMPILE = arm-none-eabi-
|
|
|
|
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-Wno-error=undef \
|
|
|
|
-Wno-error=strict-prototypes \
|
|
|
|
-Wno-error=cast-align \
|
|
|
|
-Wno-error=cast-qual \
|
|
|
|
-Wno-error=unused-but-set-variable \
|
|
|
|
-Wno-error=unused-variable \
|
|
|
|
-mthumb \
|
|
|
|
-nostdlib \
|
|
|
|
-nostartfiles \
|
|
|
|
-ffunction-sections \
|
|
|
|
-fdata-sections \
|
|
|
|
-ffreestanding
|
|
|
|
|
|
|
|
SRC_C += \
|
2023-03-16 11:03:08 +07:00
|
|
|
src/portable/renesas/rusb2/dcd_rusb2.c \
|
|
|
|
src/portable/renesas/rusb2/hcd_rusb2.c \
|
2023-05-03 10:02:24 +02:00
|
|
|
src/portable/renesas/rusb2/rusb2_ra.c \
|
2022-03-09 12:58:15 +00:00
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_clocks.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_common.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_delay.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_group_irq.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_guard.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_io.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_irq.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_register_protection.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_rom_registers.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_sbrk.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all/bsp_security.c \
|
|
|
|
hw/mcu/renesas/fsp/ra/fsp/src/r_ioport/r_ioport.c \
|
|
|
|
$(FSP_BOARD_DIR)/board_init.c \
|
|
|
|
$(FSP_BOARD_DIR)/board_leds.c
|
|
|
|
|
|
|
|
INC += \
|
2023-03-11 08:23:21 +07:00
|
|
|
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
2022-03-09 12:58:15 +00:00
|
|
|
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/src/bsp/cmsis/Device/RENESAS/Include \
|
|
|
|
$(TOP)/$(BOARD_PATH) \
|
|
|
|
$(TOP)/$(BOARD_PATH)/fsp_cfg \
|
|
|
|
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc \
|
|
|
|
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc/api \
|
|
|
|
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/inc/instances \
|
2023-05-03 10:02:24 +02:00
|
|
|
$(TOP)/hw/mcu/renesas/fsp/ra/fsp/src/bsp/mcu/all \
|
2022-03-09 12:58:15 +00:00
|
|
|
$(TOP)/$(FSP_MCU_DIR) \
|
|
|
|
$(TOP)/$(FSP_BOARD_DIR)
|
|
|
|
|
|
|
|
# For freeRTOS port source
|
|
|
|
# hack to use the port provided by renesas
|
2023-03-16 23:11:11 +07:00
|
|
|
FREERTOS_PORTABLE_SRC = hw/mcu/renesas/fsp/ra/fsp/src/rm_freertos_port
|