2015-09-16 17:16:03 +02:00
|
|
|
# set default port depending on operating system
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2015-09-16 17:16:03 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2014-02-27 12:48:30 +01:00
|
|
|
|
2015-09-16 17:16:03 +02:00
|
|
|
# setup flash tool
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = $(RIOTTOOLS)/goodfet/goodfet.bsl
|
2018-12-19 19:29:33 +01:00
|
|
|
FLASHFILE ?= $(HEXFILE)
|
|
|
|
FFLAGS = --z1 -I -c $(PORT) -r -e -p $(FLASHFILE)
|