update msp430 make build

This commit is contained in:
hathach 2024-04-15 22:49:08 +07:00
parent 9561e38267
commit afb66a955c
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52
3 changed files with 14 additions and 3 deletions

View File

@ -0,0 +1,8 @@
ifeq ($(TOOLCHAIN),gcc)
# nothing to add
else ifeq ($(TOOLCHAIN),iar)
# nothing to add
endif
# For freeRTOS port source
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/GCC_MSP430F449

View File

@ -0,0 +1,4 @@
CFLAGS += \
-D__MSP430F5529__ \
LD_FILE = ${SDK_DIR}/msp430f5529.ld

View File

@ -4,14 +4,13 @@ SKIP_NANOLIB = 1
SDK_DIR = hw/mcu/ti/msp430/msp430-gcc-support-files/include
include $(TOP)/$(BOARD_PATH)/board.mk
CFLAGS += \
-D__MSP430F5529__ \
-DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \
-DCFG_EXAMPLE_MSC_READONLY \
-DCFG_TUD_ENDPOINT0_SIZE=8
# All source paths should be relative to the top level.
LD_FILE = ${SDK_DIR}/msp430f5529.ld
LDFLAGS += -L${TOP}/${SDK_DIR}
SRC_C += src/portable/ti/msp430x5xx/dcd_msp430x5xx.c