diff options
author | Brian Cully <bjc@kublai.com> | 2019-06-13 18:00:42 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-06-22 16:18:03 -0400 |
commit | fad3038b035db90c59f297891835d37fd97b79c5 (patch) | |
tree | e99ab8e4de5130dc9aca5ad35f3c6b8e0e82d263 /nrf52/Makefile | |
download | usb2btle-fad3038b035db90c59f297891835d37fd97b79c5.tar.gz usb2btle-fad3038b035db90c59f297891835d37fd97b79c5.zip |
Initial commit.
Diffstat (limited to 'nrf52/Makefile')
-rw-r--r-- | nrf52/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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 |