1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/msb-430-common/Makefile.include

32 lines
1022 B
Makefile
Raw Normal View History

## the cpu to build for
export CPU = msp430fxyz
2015-09-16 17:18:10 +02:00
export CPU_MODEL = msp430f1612
2015-09-16 17:18:10 +02:00
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
2015-09-16 17:18:10 +02:00
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
2015-09-16 17:18:10 +02:00
# setup flash tool
export OFLAGS = -O ihex
export PROGRAMMER ?= olimex
export MSPDEBUGFLAGS += -j $(PROGRAMMER)
ifeq ($(strip $(PROGRAMMER)),uif)
2017-09-22 14:52:12 +02:00
export MSPDEBUGFLAGS += -d $(PORT)
endif
2015-09-16 17:18:10 +02:00
export FLASHER ?= mspdebug
export FFLAGS = $(MSPDEBUGFLAGS) "prog $(HEXFILE)"
# setup debugger
export DEBUGSERVER = $(FLASHER)
export DEBUGSERVER_FLAGS = $(MSPDEBUGFLAGS) gdb
export DEBUGGER = $(PREFIX)gdb
export DEBUGGER_FLAGS = --tui --ex="target remote localhost:2000" --ex "monitor reset halt" --ex load -ex "monitor reset halt" $(ELFFILE)
2015-09-16 17:18:10 +02:00
# export msb-430-common includes
export INCLUDES += -I$(RIOTBOARD)/msb-430-common/include
export INCLUDES += -I$(RIOTBOARD)/msb-430-common/drivers/include
USEMODULE += msb-430-common-drivers