2015-08-23 07:29:01 +02:00
|
|
|
# define the used CPU
|
|
|
|
export CPU = nrf51
|
|
|
|
export CPU_MODEL = nrf51x22xxaa
|
|
|
|
|
|
|
|
# set default port depending on operating system
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2015-08-23 07:29:01 +02:00
|
|
|
|
|
|
|
# define flash and debugging environment
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
|
|
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
|
|
|
export DEBUGSERVER = JLinkGDBServer -device nrf51822 -if SWD
|
|
|
|
export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
|
|
|
|
|
|
|
|
export OFLAGS = -O binary
|
|
|
|
export HEXFILE = $(ELFFILE:.elf=.bin)
|
|
|
|
export FFLAGS = $(BINDIR) $(HEXFILE)
|
|
|
|
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
|
|
|
export RESET_FLAGS = $(BINDIR)
|
|
|
|
|
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|