# set default port depending on operating system PORT_LINUX ?= /dev/ttyUSB0 PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*))) # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk # setup flash tool FLASHER = $(RIOTTOOLS)/goodfet/goodfet.bsl FLASHFILE ?= $(HEXFILE) FFLAGS = --z1 -I -c $(PROG_DEV) -r -e -p $(FLASHFILE)