rules.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # MCU name
  2. MCU = atmega32u4
  3. # Interrupt driven control endpoint task(+60)
  4. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  5. # Boot Section Size in *bytes*
  6. # Teensy halfKay 512
  7. # Teensy++ halfKay 1024
  8. # Atmel DFU loader 4096
  9. # LUFA bootloader 4096
  10. # USBaspLoader 2048
  11. BOOTLOADER = atmel-dfu
  12. #OPT_DEFS += -DBOOTLOADER_SIZE=4096
  13. # Do not put the microcontroller into power saving mode
  14. # when we get USB suspend event. We want it to keep updating
  15. # backlight effects.
  16. #OPT_DEFS += -DNO_SUSPEND_POWER_DOWN
  17. # Build Options
  18. # change yes to no to disable
  19. #
  20. BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
  21. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  22. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  23. CONSOLE_ENABLE = no # Console for debug(+400)
  24. COMMAND_ENABLE = no # Commands for debug and configuration
  25. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  26. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  27. # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  28. NKRO_ENABLE = no # USB Nkey Rollover
  29. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
  30. MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
  31. UNICODE_ENABLE = no # Unicode
  32. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  33. AUDIO_ENABLE = no # Audio output on port C6
  34. FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
  35. #RGBLIGHT_ENABLE = yes # Use RGB bottom light
  36. RGB_MATRIX_ENABLE = yes # Use RGB matrix
  37. LAYOUTS = 60_ansi 60_hhkb 60_iso 60_ansi_split_bs_rshift
  38. CUSTOM_MATRIX = yes
  39. SRC += matrix.c