rules.mk 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Set the LFK78 hardware version.
  2. #
  3. # B - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
  4. # C-H - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
  5. # J - at90usb646, C6 audio, ISSI device 0 is backlight, 4 is RGB
  6. LFK_REV = J
  7. ifeq ($(LFK_REV), B)
  8. MCU = atmega32u4
  9. else ifeq ($(LFK_REV), J)
  10. MCU = at90usb646
  11. else
  12. MCU = at90usb1286
  13. endif
  14. BOOTLOADER = atmel-dfu
  15. OPT_DEFS += -DLFK_REV_$(LFK_REV)
  16. OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
  17. # Extra source files for IS3731 lighting
  18. SRC = TWIlib.c issi.c lighting.c
  19. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration
  20. MOUSEKEY_ENABLE = no # Mouse keys
  21. EXTRAKEY_ENABLE = yes # Audio control and System control
  22. CONSOLE_ENABLE = no # Console for debug
  23. COMMAND_ENABLE = no # Commands for debug and configuration
  24. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  25. BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
  26. BACKLIGHT_DRIVER = custom
  27. MIDI_ENABLE = no # MIDI controls
  28. AUDIO_ENABLE = yes # Audio output on port C6
  29. UNICODE_ENABLE = no # Unicode
  30. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  31. RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
  32. RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base
  33. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  34. TAP_DANCE_ENABLE = no
  35. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  36. WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
  37. CAPSLOCK_LED = no # Toggle back light LED of Caps Lock
  38. ifeq ($(strip $(ISSI_ENABLE)), yes)
  39. TMK_COMMON_DEFS += -DISSI_ENABLE
  40. endif
  41. ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  42. TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
  43. endif
  44. ifeq ($(strip $(CAPSLOCK_LED)), yes)
  45. TMK_COMMON_DEFS += -DCAPSLOCK_LED
  46. endif
  47. # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
  48. # #
  49. # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
  50. # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
  51. # #
  52. # # Set to B, C or D
  53. # LFK_REV = D
  54. # ifeq ($(LFK_REV), B)
  55. # MCU = atmega32u4
  56. # else
  57. # MCU = at90usb1286
  58. # endif
  59. # OPT_DEFS += -DLFK_REV_$(LFK_REV)
  60. # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"