rules.mk 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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(+1000)
  20. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  21. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  22. CONSOLE_ENABLE = no # Console for debug(+400)
  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. MIDI_ENABLE = no # MIDI controls
  27. AUDIO_ENABLE = yes # Audio output on port C6
  28. UNICODE_ENABLE = no # Unicode
  29. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  30. RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
  31. RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base
  32. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  33. TAP_DANCE_ENABLE = no
  34. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  35. WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
  36. CAPSLOCK_LED = no # Toggle back light LED of Caps Lock
  37. ifeq ($(strip $(ISSI_ENABLE)), yes)
  38. TMK_COMMON_DEFS += -DISSI_ENABLE
  39. endif
  40. ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  41. TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
  42. endif
  43. ifeq ($(strip $(CAPSLOCK_LED)), yes)
  44. TMK_COMMON_DEFS += -DCAPSLOCK_LED
  45. endif
  46. # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
  47. # #
  48. # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
  49. # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
  50. # #
  51. # # Set to B, C or D
  52. # LFK_REV = D
  53. # ifeq ($(LFK_REV), B)
  54. # MCU = atmega32u4
  55. # else
  56. # MCU = at90usb1286
  57. # endif
  58. # OPT_DEFS += -DLFK_REV_$(LFK_REV)
  59. # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"