rules.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
  2. MOUSEKEY_ENABLE = no # Mouse keys
  3. EXTRAKEY_ENABLE = yes # Audio control and System control
  4. CONSOLE_ENABLE = no # Console for debug
  5. COMMAND_ENABLE = no # Commands for debug and configuration
  6. NKRO_ENABLE = yes
  7. BACKLIGHT_ENABLE = yes # Disable keyboard backlight functionality
  8. AUDIO_ENABLE = no # Audio output
  9. RGBLIGHT_ENABLE = yes # Disable RGB underlight
  10. RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812
  11. SLEEP_LED_ENABLE = yes
  12. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  13. WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
  14. ifeq ($(strip $(ISSI_ENABLE)), yes)
  15. TMK_COMMON_DEFS += -DISSI_ENABLE
  16. endif
  17. ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  18. TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
  19. endif
  20. # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
  21. # #
  22. # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
  23. # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
  24. # #
  25. # # Set to B, C or D
  26. # LFK_REV = D
  27. # ifeq ($(LFK_REV), B)
  28. # MCU = atmega32u4
  29. # else
  30. # MCU = at90usb1286
  31. # endif
  32. # OPT_DEFS += -DLFK_REV_$(LFK_REV)
  33. # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"