2017-11-05 21:40:33 +01:00
|
|
|
# define the cpu used by the SODAQ ONE board
|
|
|
|
export CPU = samd21
|
|
|
|
export CPU_MODEL = samd21g18a
|
|
|
|
|
2019-06-03 16:21:28 +02:00
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
2017-11-05 21:40:33 +01:00
|
|
|
|
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
|
|
|
# setup the flash tool used
|
|
|
|
# we use BOSSA to flash this board since there's an Arduino bootloader
|
|
|
|
# preflashed on it. ROM_OFFSET skips the space taken by such bootloader.
|
|
|
|
ROM_OFFSET ?= 0x2000
|
|
|
|
include $(RIOTMAKE)/tools/bossa.inc.mk
|
|
|
|
|
|
|
|
# setup the boards dependencies
|
|
|
|
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
|