aboutsummaryrefslogtreecommitdiffstats
path: root/samd/Makefile
blob: 314396c56f57a8fac46794f94f24e3aa63b3cc7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include ../Makefile.common
include Makefile.feather-m4
#include Makefile.trinket-m0

SERIALPORT = $(shell ../find-serial-port $(USBVID) $(USBPID) || echo cant-find-serial-port)

APP = samd

all: $(BUILDDIR)/$(APP).ino.bin

flash: $(BUILDDIR)/$(APP).ino.bin $(SERIALPORT)
	$(PKGDIR)/arduino/tools/bossac/1.8.0-48-gb176eee/bossac -R -e -w -v -o$(IMGOFFSET) -p$(SERIALPORT) $<

console:
	screen $(SERIALPORT) 115200