2018-02-23 17:25:18 +01:00
|
|
|
# set default port depending on operating system
|
|
|
|
PORT_LINUX ?= /dev/ttyACM0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
|
|
|
# setup JLink for flashing
|
|
|
|
export JLINK_DEVICE := $(CPU_MODEL)
|
2019-09-03 11:01:21 +02:00
|
|
|
export JLINK_PRE_FLASH = r
|
2018-02-23 17:25:18 +01:00
|
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
|
|
|
|
|
|
|
# add board common drivers
|
|
|
|
USEMODULE += boards_common_silabs
|
|
|
|
USEMODULE += silabs_aem
|
|
|
|
USEMODULE += silabs_bc
|
|
|
|
|
|
|
|
# include board common
|
|
|
|
include $(RIOTBOARD)/common/silabs/Makefile.include
|