2021-10-23 08:14:28 +02:00
|
|
|
DEPS_SUBMODULES += lib/CMSIS_5 hw/mcu/ti
|
|
|
|
|
|
|
|
CFLAGS += \
|
|
|
|
-flto \
|
|
|
|
-mthumb \
|
|
|
|
-mslow-flash-data \
|
|
|
|
-mabi=aapcs \
|
|
|
|
-mcpu=cortex-m4 \
|
|
|
|
-mfloat-abi=hard \
|
|
|
|
-mfpu=fpv4-sp-d16 \
|
|
|
|
-D__MSP432E401Y__ \
|
2021-11-08 11:24:58 +01:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_MSP432E4
|
2021-10-23 08:14:28 +02:00
|
|
|
|
2021-10-30 16:41:23 +02:00
|
|
|
# mcu driver cause following warnings
|
|
|
|
CFLAGS += -Wno-error=cast-qual -Wno-error=format=
|
|
|
|
|
2021-10-23 08:14:28 +02:00
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/mcu/ti/msp432e4/Source/msp432e401y.ld
|
|
|
|
LDINC += $(TOP)/hw/mcu/ti/msp432e4/Include
|
|
|
|
LDFLAGS += $(addprefix -L,$(LDINC))
|
|
|
|
|
|
|
|
MCU_DIR = hw/mcu/ti/msp432e4
|
|
|
|
|
|
|
|
SRC_C += \
|
2021-10-30 16:41:23 +02:00
|
|
|
src/portable/mentor/musb/dcd_musb.c \
|
2021-12-07 10:27:48 +01:00
|
|
|
src/portable/mentor/musb/hcd_musb.c \
|
2021-10-23 08:14:28 +02:00
|
|
|
$(MCU_DIR)/Source/system_msp432e401y.c
|
|
|
|
|
|
|
|
INC += \
|
|
|
|
$(TOP)/lib/CMSIS_5/CMSIS/Core/Include \
|
|
|
|
$(TOP)/$(MCU_DIR)/Include \
|
|
|
|
$(TOP)/$(BOARD_PATH)
|
|
|
|
|
|
|
|
SRC_S += $(MCU_DIR)/Source/startup_msp432e411y_gcc.S
|
|
|
|
|
|
|
|
# For freeRTOS port source
|
2023-03-16 17:11:11 +01:00
|
|
|
FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM4F
|
2021-10-23 08:14:28 +02:00
|
|
|
|
2021-10-30 16:41:23 +02:00
|
|
|
# For flash-jlink target
|
|
|
|
JLINK_DEVICE = MSP432E401Y
|
|
|
|
JLINK_IF = SWD
|