2018-10-24 17:56:13 +02:00
|
|
|
# define the used CPU model
|
2015-06-15 23:03:29 +02:00
|
|
|
export CPU_MODEL = nrf51x22xxaa
|
2014-08-05 00:51:23 +02:00
|
|
|
|
2018-10-24 17:56:13 +02:00
|
|
|
# include common nrf51 boards module into the build
|
|
|
|
USEMODULE += boards_common_nrf51
|
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2014-08-05 00:51:23 +02:00
|
|
|
|
2018-10-24 17:56:13 +02:00
|
|
|
# This board uses an ST-Link v2 debug adapter
|
2017-10-06 14:59:07 +02:00
|
|
|
export DEBUG_ADAPTER ?= stlink
|
|
|
|
export STLINK_VERSION ?= 2
|
|
|
|
|
2018-10-24 17:56:13 +02:00
|
|
|
# use openocd to program this board
|
|
|
|
PROGRAMMER = openocd
|
|
|
|
|
|
|
|
# import nrf51 boards common configuration
|
|
|
|
include $(RIOTBOARD)/common/nrf51/Makefile.include
|