aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk
diff options
context:
space:
mode:
Diffstat (limited to 'circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk')
-rw-r--r--circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk41
1 files changed, 41 insertions, 0 deletions
diff --git a/circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk b/circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk
new file mode 100644
index 0000000..e3cb90a
--- /dev/null
+++ b/circuitpython/lib/tinyusb/hw/bsp/msp432e4/family.mk
@@ -0,0 +1,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