2015-06-15 23:03:29 +02:00
|
|
|
# define the used CPU
|
|
|
|
export CPU = nrf51
|
|
|
|
export CPU_MODEL = nrf51x22xxaa
|
2014-07-30 15:00:48 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2014-07-30 15:00:48 +02:00
|
|
|
|
2016-03-01 19:24:09 +01:00
|
|
|
# setup JLink for flashing
|
|
|
|
export JLINK_DEVICE := nrf51822
|
|
|
|
export JLINK_PRE_FLASH := w4 4001e504 1
|
|
|
|
include $(RIOTBOARD)/Makefile.include.jlink
|
2014-07-30 15:00:48 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTBOARD)/Makefile.include.serial
|