summaryrefslogtreecommitdiff
path: root/keyboard/atreus/Makefile
diff options
context:
space:
mode:
authorChris Gerber <christopher.gerber@regeneron.com>2016-01-03 17:49:28 -0500
committerChris Gerber <christopher.gerber@regeneron.com>2016-02-15 20:53:56 -0500
commit47dcec29456106828b83fe5b85fa7a7427ddc710 (patch)
treeb0b23ee8df18f1b82997416e99b7f5216db86d2f /keyboard/atreus/Makefile
parent02069762678517349fc1dd643b8710045571666c (diff)
Add support for Atreus running on A-Star
Diffstat (limited to 'keyboard/atreus/Makefile')
-rw-r--r--keyboard/atreus/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/keyboard/atreus/Makefile b/keyboard/atreus/Makefile
index e1ebee47bd..6666be1192 100644
--- a/keyboard/atreus/Makefile
+++ b/keyboard/atreus/Makefile
@@ -58,6 +58,10 @@ else
SRC := keymaps/keymap_default.c $(SRC)
endif
+ifdef ASTAR
+ OPT_DEFS += -DATREUS_ASTAR
+endif
+
CONFIG_H = config.h
# MCU name
@@ -114,8 +118,8 @@ OPT_DEFS += -DBOOTLOADER_SIZE=4096
# comment out to disable the options.
#
#BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
-#MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
-#EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
+MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
+EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
@@ -137,3 +141,12 @@ VPATH += $(TMK_DIR)
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