2019-09-14 18:01:52 -04:00
|
|
|
CFLAGS += \
|
|
|
|
-D__MSP430F5529__ \
|
2019-09-23 17:48:18 -04:00
|
|
|
-DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \
|
2019-09-24 02:41:11 -04:00
|
|
|
-DCFG_EXAMPLE_MSC_READONLY \
|
2019-09-27 12:41:46 -04:00
|
|
|
-DCFG_TUD_ENDPOINT0_SIZE=8
|
2019-09-14 18:01:52 -04:00
|
|
|
|
2019-10-29 17:36:53 +07:00
|
|
|
#-mmcu=msp430f5529
|
|
|
|
|
2019-09-14 18:01:52 -04:00
|
|
|
# All source paths should be relative to the top level.
|
|
|
|
LD_FILE = hw/bsp/msp_exp430f5529lp/msp430f5529.ld
|
2019-09-14 21:16:10 -04:00
|
|
|
LDINC += $(TOP)/hw/bsp/$(BOARD)
|
2019-09-14 18:01:52 -04:00
|
|
|
|
|
|
|
INC += $(TOP)/hw/bsp/$(BOARD)
|
|
|
|
|
|
|
|
# For TinyUSB port source
|
|
|
|
VENDOR = ti
|
|
|
|
CHIP_FAMILY = msp430x5xx
|
|
|
|
|
2019-09-14 21:16:10 -04:00
|
|
|
# Path to mspdebug, should be added into system path
|
2019-09-14 18:01:52 -04:00
|
|
|
MSPDEBUG = mspdebug
|
|
|
|
|
2019-09-14 21:16:10 -04:00
|
|
|
# flash target using mspdebug.
|
2019-09-14 18:01:52 -04:00
|
|
|
flash: $(BUILD)/$(BOARD)-firmware.elf
|
2019-10-29 17:36:53 +07:00
|
|
|
$(MSPDEBUG) tilib "prog $<" --allow-fw-update
|