2016-10-29 14:26:31 +02: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.SLAB_USBtoUART*)))
|
|
|
|
|
2019-06-04 15:27:07 +02:00
|
|
|
# for this board we support flashing via openocd or pyocd
|
|
|
|
PROGRAMMER ?= openocd
|
2018-10-24 21:36:49 +02:00
|
|
|
|
2019-06-04 15:27:07 +02:00
|
|
|
ifeq (openocd,$(PROGRAMMER))
|
2018-10-24 21:36:49 +02:00
|
|
|
DEBUG_ADAPTER = dap
|
2019-06-04 15:27:07 +02:00
|
|
|
else ifeq (pyocd,$(PROGRAMMER))
|
2018-08-25 18:17:05 +02:00
|
|
|
include $(RIOTMAKE)/tools/pyocd.inc.mk
|
2016-10-29 14:26:31 +02:00
|
|
|
endif
|
2018-10-24 17:56:24 +02:00
|
|
|
|
|
|
|
# include nrf51 boards common configuration
|
|
|
|
include $(RIOTBOARD)/common/nrf51/Makefile.include
|