1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-30 23:18:06 +11:00
collapseos/recipes/arduinouno/at28/Makefile
Virgil Dupras b8e52707e9 recipes/arduinouno/at28: improve reliability
Previously, it could never write more than a few bytes before pingpong
getting a mismatch error. Now, I can pingpong Collapse OS binary
without a mismatch.
2020-07-28 15:23:10 -04:00

24 lines
427 B
Makefile

PROGNAME = at28wr
USBDEV = /dev/cuaU0
BAUDS = 115200
AVRDUDEARGS = -F -V -c arduino -P $(USBDEV) -b $(BAUDS)
AVRDUDEMCU = atmega328p
TARGET = $(PROGNAME).hex
AVRA = avra
# Rules
.PHONY: send all clean
all: $(TARGET)
@echo Done!
send: $(PROGNAME).hex
avrdude $(AVRDUDEARGS) -p $(AVRDUDEMCU) -U flash:w:$(PROGNAME).hex
$(TARGET): $(PROGNAME).asm
$(AVRA) -o $@ $(PROGNAME).asm
clean:
rm -f $(TARGET) *.S.eep.hex *.S.obj