|
|
|
@ -2,11 +2,11 @@
|
|
|
|
|
|
|
|
|
|
ifdef TEENSY2
|
|
|
|
|
OPT_DEFS += -DATREUS_TEENSY2
|
|
|
|
|
ATRUES_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
|
|
|
|
|
ATREUS_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex
|
|
|
|
|
else
|
|
|
|
|
OPT_DEFS += -DATREUS_ASTAR
|
|
|
|
|
OPT_DEFS += -DCATERINA_BOOTLOADER
|
|
|
|
|
ATRUES_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
|
|
|
|
|
ATREUS_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
|
|
|
|
|
avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
@ -84,5 +84,5 @@ endif
|
|
|
|
|
USB ?= /dev/cu.usbmodem1411
|
|
|
|
|
|
|
|
|
|
upload: build
|
|
|
|
|
$(ATRUES_UPLOAD_COMMAND)
|
|
|
|
|
$(ATREUS_UPLOAD_COMMAND)
|
|
|
|
|
|