From fad3038b035db90c59f297891835d37fd97b79c5 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 13 Jun 2019 18:00:42 -0400 Subject: Initial commit. --- nrf52/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 nrf52/Makefile (limited to 'nrf52/Makefile') diff --git a/nrf52/Makefile b/nrf52/Makefile new file mode 100644 index 0000000..fdb47ee --- /dev/null +++ b/nrf52/Makefile @@ -0,0 +1,22 @@ +include ../Makefile.common +#include Makefile.feather-52840 +include Makefile.feather-52832 + +SERIALPORT = $(shell ../find-serial-port $(USBVID) $(USBPID) || echo 'cant-find-serial-port') + +APP = nrf52 + +all: $(BUILDDIR)/$(APP).ino.zip + +flash: $(BUILDDIR)/$(APP).ino.zip $(SERIALPORT) + adafruit-nrfutil dfu serial --package $(BUILDDIR)/$(APP).ino.zip -p $(SERIALPORT) -b 115200 -sb -t 1200 + +console: + screen $(SERIALPORT) 115200 + +# Deps +nrf52.ino: i2c_ring_buffer.cpp state_machine.cpp log.h ../common/i2c_message.h + +i2c_ring_buffer.cpp: i2c_ring_buffer.h + +state_machine.cpp: state_machine.h -- cgit v1.2.3