2019-06-03 16:21:28 +02:00
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
2017-08-24 11:44:56 +02:00
|
|
|
|
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
|
|
|
# setup the flash tool used
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
|
|
# in case J-Link is attached to SWD pins, use a plain CPU memory model
|
2020-03-03 11:56:38 +01:00
|
|
|
JLINK_DEVICE = atsamd21
|
2017-08-24 11:44:56 +02:00
|
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
|
|
|
else
|
|
|
|
# by default, we use BOSSA to flash this board to take into account the
|
2017-10-24 15:29:41 +02:00
|
|
|
# pre-flashed Arduino bootloader. ROM_OFFSET skips the space taken by
|
|
|
|
# such bootloader.
|
|
|
|
ROM_OFFSET ?= 0x2000
|
2017-08-24 11:44:56 +02:00
|
|
|
include $(RIOTMAKE)/tools/bossa.inc.mk
|
|
|
|
endif
|
|
|
|
|
|
|
|
# setup the boards dependencies
|
2019-12-20 18:36:34 +01:00
|
|
|
include $(RIOTBOARD)/feather-m0/Makefile.dep
|