diff options
author | Chris Gerber <christopher.gerber@regeneron.com> | 2016-02-17 18:55:17 -0500 |
---|---|---|
committer | Chris Gerber <christopher.gerber@regeneron.com> | 2016-02-17 19:14:25 -0500 |
commit | 1db3558a921d465e1c2f7f280f94dad8e95d32ac (patch) | |
tree | ad9ee6b3125b21f8f5e3f5ef0e783ea0b4c7b42b /keyboard/atreus/Makefile | |
parent | 47dcec29456106828b83fe5b85fa7a7427ddc710 (diff) |
Change default controller for Atreus from Teensy2 to A-Star
Diffstat (limited to 'keyboard/atreus/Makefile')
-rw-r--r-- | keyboard/atreus/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/keyboard/atreus/Makefile b/keyboard/atreus/Makefile index 6666be1192..2e542d62ed 100644 --- a/keyboard/atreus/Makefile +++ b/keyboard/atreus/Makefile @@ -58,8 +58,13 @@ else SRC := keymaps/keymap_default.c $(SRC) endif -ifdef ASTAR +ifdef TEENSY2 + OPT_DEFS += -DATREUS_TEENSY2 + ATRUES_UPLOAD_COMMAND = teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex +else OPT_DEFS += -DATREUS_ASTAR + ATRUES_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \ + avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB) endif CONFIG_H = config.h @@ -144,9 +149,4 @@ include $(TOP_DIR)/quantum/quantum.mk USB ?= /dev/cu.usbmodem1411 upload: build -ifdef ASTAR - while [ ! -r $(USB) ]; do sleep 1; done; \ - avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB) -else - teensy_loader_cli -w -mmcu=$(MCU) $(TARGET).hex -endif + $(ATRUES_UPLOAD_COMMAND) |