explicitly add dcd source file without vendor/family

This commit is contained in:
hathach
2021-03-17 16:52:07 +07:00
parent 8775e89a4f
commit ed8f117dd1
46 changed files with 56 additions and 190 deletions

View File

@@ -8,23 +8,17 @@ CFLAGS += \
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_TUD_ENDPOINT0_SIZE=8
#-mmcu=msp430f5529
# All source paths should be relative to the top level.
LD_FILE = hw/mcu/ti/msp430/msp430-gcc-support-files/include/msp430f5529.ld
LDINC += $(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include
LDFLAGS += $(addprefix -L,$(LDINC))
SRC_C += src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
INC += \
$(TOP)/hw/mcu/ti/msp430/msp430-gcc-support-files/include \
$(TOP)/$(BOARD_PATH)
# For TinyUSB port source
VENDOR = ti
CHIP_FAMILY = msp430x5xx
# export for libmsp430.so to same installation
ifneq ($(OS),Windows_NT)
export LD_LIBRARY_PATH=$(dir $(shell which MSP430Flasher))