X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fonekey%2FMakefile.vusb;h=0684066687a0481a5489de588ff4dabbfd7b477f;hb=4b44e106b38f7c4143c51ad4f0b0331a96925537;hp=fb1fbdfea2fa590e6266cc4005a5d23500f6b4c8;hpb=83a3de38b710d0eb5a752ffded6da2e8bf818b22;p=max%2Ftmk_keyboard.git diff --git a/keyboard/onekey/Makefile.vusb b/keyboard/onekey/Makefile.vusb index fb1fbdfe..06840666 100644 --- a/keyboard/onekey/Makefile.vusb +++ b/keyboard/onekey/Makefile.vusb @@ -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