2016-11-21 15:12:24 +01:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
2019-06-04 15:09:23 +02:00
|
|
|
# for this board we support flashing via openocd or pyocd
|
|
|
|
PROGRAMMER ?= openocd
|
2018-10-26 10:13:40 +02:00
|
|
|
|
2019-06-04 15:09:23 +02:00
|
|
|
ifeq (openocd,$(PROGRAMMER))
|
2019-04-17 14:08:02 +02:00
|
|
|
DEBUG_ADAPTER = dap
|
2019-04-17 14:09:29 +02:00
|
|
|
else ifeq (pyocd,$(PROGRAMMER))
|
|
|
|
# PyOCD doesn't recognize automatically the board ID, so target type has to
|
|
|
|
# be passed explicitly
|
|
|
|
export FLASH_TARGET_TYPE ?= -t nrf51
|
|
|
|
include $(RIOTMAKE)/tools/pyocd.inc.mk
|
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
|