mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
21 lines
567 B
Makefile
21 lines
567 B
Makefile
# 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
|
|
|
|
PROGRAMMER ?= jlink
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
# setup JLink for flashing
|
|
export JLINK_DEVICE := $(CPU_MODEL)
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
|
else ifeq ($(PROGRAMMER),openocd)
|
|
export OPENOCD_CONFIG := board/efm32.cfg
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
|
endif
|
|
|
|
# include board common
|
|
include $(RIOTBOARD)/common/silabs/Makefile.include
|