2015-06-15 23:50:31 +02:00
|
|
|
# define the used CPU
|
|
|
|
export CPU = nrf51
|
|
|
|
export CPU_MODEL = nrf51x22xxab
|
|
|
|
|
|
|
|
# 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*)))
|
2015-06-15 23:50:31 +02:00
|
|
|
|
2016-02-26 15:32:09 +01:00
|
|
|
# setup JLink for flashing
|
|
|
|
export JLINK_DEVICE := nrf51822
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
2015-06-15 23:50:31 +02:00
|
|
|
|
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|