passkey_fw/hw/bsp/msp432e4/family.mk

39 lines
917 B
Makefile
Raw Normal View History

2021-10-23 08:14:28 +02:00
DEPS_SUBMODULES += lib/CMSIS_5 hw/mcu/ti
2023-06-24 13:38:41 +02:00
#include $(TOP)/$(BOARD_PATH)/board.mk
CPU_CORE ?= cortex-m4
2021-10-23 08:14:28 +02:00
CFLAGS += \
-flto \
-mslow-flash-data \
-D__MSP432E401Y__ \
-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=
LDFLAGS_GCC += -specs=nosys.specs -specs=nano.specs
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
2021-10-30 16:41:23 +02:00
# For flash-jlink target
JLINK_DEVICE = MSP432E401Y
JLINK_IF = SWD