rules.mk 2.6 KB

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