aboutsummaryrefslogtreecommitdiffstats
path: root/nrf52/Makefile
blob: fdb47ee230c71f08482d259d0def75ec17a2acdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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