mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
32 lines
1.0 KiB
Makefile
32 lines
1.0 KiB
Makefile
## the cpu to build for
|
|
export CPU = msp430fxyz
|
|
export CPU_MODEL = msp430f1612
|
|
|
|
# set default port depending on operating system
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
# setup serial terminal
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
# setup flash tool
|
|
export OFLAGS = -O ihex
|
|
export PROGRAMMER ?= olimex
|
|
export MSPDEBUGFLAGS += -j $(PROGRAMMER)
|
|
ifeq ($(strip $(PROGRAMMER)),uif)
|
|
export MSPDEBUGFLAGS += -d $(PORT)
|
|
endif
|
|
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)
|
|
|
|
# export common msb-430 includes
|
|
export INCLUDES += -I$(RIOTBOARD)/common/msb-430/include
|
|
export INCLUDES += -I$(RIOTBOARD)/common/msb-430/drivers/include
|
|
|
|
USEMODULE += boards_common_msb-430-drivers
|