2021-11-07 07:41:32 +01:00
|
|
|
DEPS_SUBMODULES += hw/mcu/ti
|
2023-11-23 06:43:13 +01:00
|
|
|
MCU_DIR=hw/mcu/ti/tm4c123xx
|
2021-11-07 07:41:32 +01:00
|
|
|
|
2021-11-08 11:37:21 +01:00
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
2023-06-24 13:38:41 +02:00
|
|
|
CPU_CORE ?= cortex-m4
|
2021-11-08 11:37:21 +01:00
|
|
|
|
2021-11-07 07:41:32 +01:00
|
|
|
CFLAGS += \
|
|
|
|
-flto \
|
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_TM4C123 \
|
|
|
|
-uvectors \
|
|
|
|
-DTM4C123GH6PM
|
2023-03-16 17:11:11 +01:00
|
|
|
|
2021-11-07 11:45:16 +01:00
|
|
|
# mcu driver cause following warnings
|
|
|
|
CFLAGS += -Wno-error=strict-prototypes -Wno-error=cast-qual
|
2021-11-07 07:41:32 +01:00
|
|
|
|
2023-11-23 06:43:13 +01:00
|
|
|
LDFLAGS_GCC += -specs=nosys.specs -specs=nano.specs
|
2021-11-07 07:41:32 +01:00
|
|
|
|
|
|
|
# All source paths should be relative to the top level.
|
2021-11-07 11:45:16 +01:00
|
|
|
LD_FILE = $(BOARD_PATH)/tm4c123.ld
|
2021-11-07 07:41:32 +01:00
|
|
|
|
|
|
|
INC += \
|
2021-11-07 11:45:16 +01:00
|
|
|
$(TOP)/$(MCU_DIR)/CMSIS/5.7.0/CMSIS/Include \
|
|
|
|
$(TOP)/$(MCU_DIR)/Include/TM4C123 \
|
2021-11-08 11:37:21 +01:00
|
|
|
$(TOP)/$(BOARD_PATH)
|
2021-11-07 07:41:32 +01:00
|
|
|
|
|
|
|
SRC_C += \
|
2021-11-08 10:41:08 +01:00
|
|
|
src/portable/mentor/musb/dcd_musb.c \
|
2021-12-07 10:28:24 +01:00
|
|
|
src/portable/mentor/musb/hcd_musb.c \
|
2021-11-07 11:45:16 +01:00
|
|
|
$(MCU_DIR)/Source/system_TM4C123.c \
|
|
|
|
$(MCU_DIR)/Source/GCC/tm4c123_startup.c
|