2016-11-21 15:12:24 +01:00
|
|
|
# define the used CPU
|
|
|
|
export CPU_MODEL = nrf51x22xxab
|
|
|
|
|
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
2018-10-26 10:13:40 +02:00
|
|
|
# this board supports flashing through plain fscopy, using JLink or using
|
|
|
|
# openocd
|
2017-05-18 13:18:54 +02:00
|
|
|
PROGRAMMER ?= fscopy
|
2018-10-26 10:13:40 +02:00
|
|
|
|
2017-05-18 13:18:54 +02:00
|
|
|
ifeq (fscopy,$(PROGRAMMER))
|
2018-03-26 18:26:38 +02:00
|
|
|
export FFLAGS = $(HEXFILE)
|
2016-11-21 15:12:24 +01:00
|
|
|
export DEBUGGER_FLAGS =
|
|
|
|
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
|
|
export DEBUGGER =
|
|
|
|
export DEBUGSERVER =
|
2018-10-26 10:13:40 +02:00
|
|
|
else ifeq (openocd,$(PROGRAMMER))
|
|
|
|
DEBUG_ADAPTER = jlink
|
2016-11-21 15:12:24 +01:00
|
|
|
endif
|
2018-10-26 10:13:40 +02:00
|
|
|
|
|
|
|
# include nrf51 boards common configuration
|
|
|
|
include $(RIOTBOARD)/common/nrf51/Makefile.include
|