Skip to content

Commit afb66a9

Browse files
committed
update msp430 make build
1 parent 9561e38 commit afb66a9

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ifeq ($(TOOLCHAIN),gcc)
2+
# nothing to add
3+
else ifeq ($(TOOLCHAIN),iar)
4+
# nothing to add
5+
endif
6+
7+
# For freeRTOS port source
8+
FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/GCC_MSP430F449
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
CFLAGS += \
2+
-D__MSP430F5529__ \
3+
4+
LD_FILE = ${SDK_DIR}/msp430f5529.ld

hw/bsp/msp430/family.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ SKIP_NANOLIB = 1
44

55
SDK_DIR = hw/mcu/ti/msp430/msp430-gcc-support-files/include
66

7+
include $(TOP)/$(BOARD_PATH)/board.mk
8+
79
CFLAGS += \
8-
-D__MSP430F5529__ \
910
-DCFG_TUSB_MCU=OPT_MCU_MSP430x5xx \
1011
-DCFG_EXAMPLE_MSC_READONLY \
1112
-DCFG_TUD_ENDPOINT0_SIZE=8
1213

13-
# All source paths should be relative to the top level.
14-
LD_FILE = ${SDK_DIR}/msp430f5529.ld
1514
LDFLAGS += -L${TOP}/${SDK_DIR}
1615

1716
SRC_C += src/portable/ti/msp430x5xx/dcd_msp430x5xx.c

0 commit comments

Comments
 (0)