]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/onekey/Makefile.vusb
Add a qwerty layer
[max/tmk_keyboard.git] / keyboard / onekey / Makefile.vusb
index fb1fbdfea2fa590e6266cc4005a5d23500f6b4c8..0684066687a0481a5489de588ff4dabbfd7b477f 100644 (file)
@@ -9,7 +9,8 @@ TARGET_DIR = .
 
 # keyboard dependent files
 SRC =  keymap.c \
-       matrix.c \
+       onekey.c \
+       vusb_osccal.c \
        led.c
 
 CONFIG_H = config.h
@@ -18,7 +19,8 @@ CONFIG_H = config.h
 # MCU name, you MUST set this to match the board you are using
 # type "make clean" after changing this, so all files will be rebuilt
 #MCU = atmega168p
-MCU = atmega328p
+#MCU = atmega328p
+MCU = attiny85
 
 
 # Processor frequency.
@@ -26,7 +28,9 @@ MCU = atmega328p
 #   so your program will run at the correct speed.  You should also set this
 #   variable to same clock speed.  The _delay_ms() macro uses this, and many
 #   examples use this variable to calculate timings.  Do not add a "UL" here.
-F_CPU = 12000000
+#F_CPU = 12000000
+# Xtal-less internal RC oscillator
+F_CPU = 16500000
 
 
 # Build Options
@@ -35,13 +39,19 @@ F_CPU = 12000000
 #MOUSEKEY_ENABLE = yes # Mouse keys
 #EXTRAKEY_ENABLE = yes # Audio control and System control
 #NKRO_ENABLE = yes     # USB Nkey Rollover
+NO_UART = yes          # No UART debug(V-USB)
+
+OPT_DEFS += -DNO_ACTION_TAPPING
+OPT_DEFS += -DNO_ACTION_LAYER
+OPT_DEFS += -DNO_ACTION_MACRO
 
 
 
 #---------------- Programming Options --------------------------
 AVRDUDE = avrdude
 # Type: avrdude -c ? to get a full listing.
-AVRDUDE_PROGRAMMER = usbasp
+#AVRDUDE_PROGRAMMER = usbasp
+AVRDUDE_PROGRAMMER = avrispmkii
 AVRDUDE_PORT =
 AVRDUDE_WRITE_FLASH = -U flash:w:$(TARGET).hex
 #AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep