aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk
blob: e3cb90abc8489556f680a8dfccfe2ab5c00c636c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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__ \
	-DCFG_TUSB_MCU=OPT_MCU_MSP432E4

# mcu driver cause following warnings
CFLAGS += -Wno-error=cast-qual -Wno-error=format=

# 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 += \
	src/portable/mentor/musb/dcd_musb.c \
	src/portable/mentor/musb/hcd_musb.c \
	$(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
FREERTOS_PORT = ARM_CM4F

# For flash-jlink target
JLINK_DEVICE = MSP432E401Y
JLINK_IF     = SWD