mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
2a17a7e8f8
this allows ports to specify a freertos port outside the FreeRTOS-Kernel lib directory, which would otherwise not be possible Signed-off-by: Rafael Silva <rafaelsilva@ajtec.pt>
42 lines
963 B
Makefile
42 lines
963 B
Makefile
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 = $(FREERTOS_PORT_PATH)/ARM_CM4F
|
|
|
|
# For flash-jlink target
|
|
JLINK_DEVICE = MSP432E401Y
|
|
JLINK_IF = SWD
|