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