aboutsummaryrefslogtreecommitdiffstats
path: root/samd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'samd/Makefile')
-rw-r--r--samd/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/samd/Makefile b/samd/Makefile
new file mode 100644
index 0000000..314396c
--- /dev/null
+++ b/samd/Makefile
@@ -0,0 +1,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