rules.mk 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # Set the LFK87 hardware version.
  2. #
  3. # A - Green PCB. at90usb1286 Only 3 exist
  4. # B - We don't talk about RevB
  5. # C-D - Black PCB. at90usb646 First public release
  6. #
  7. LFK_REV = C
  8. ifeq ($(LFK_REV), A)
  9. MCU = at90usb1286
  10. OPT_DEFS += -DBOOTLOADER_SIZE=8192
  11. else
  12. MCU = at90usb646
  13. OPT_DEFS += -DBOOTLOADER_SIZE=4096
  14. endif
  15. OPT_DEFS += -DLFK_TKL_REV_$(LFK_REV)
  16. # Extra source files for IS3731 lighting
  17. SRC = TWIlib.c issi.c lighting.c
  18. # Processor frequency.
  19. F_CPU = 16000000
  20. # Target architecture (see library "Board Types" documentation).
  21. ARCH = AVR8
  22. # Input clock frequency.
  23. F_USB = $(F_CPU)
  24. # Interrupt driven control endpoint task(+60)
  25. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  26. LAYOUTS = tkl_ansi tkl_iso
  27. # Build Options
  28. # change to "no" to disable the options, or define them in the Makefile in
  29. # the appropriate keymap folder that will get included automatically
  30. #
  31. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  32. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  33. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  34. CONSOLE_ENABLE = no # Console for debug(+400)
  35. COMMAND_ENABLE = no # Commands for debug and configuration
  36. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  37. BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
  38. MIDI_ENABLE = no # MIDI controls
  39. AUDIO_ENABLE = yes # Audio output on port C6
  40. UNICODE_ENABLE = no # Unicode
  41. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  42. RGBLIGHT_ENABLE = yes # Enable RGB underlight
  43. RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812
  44. SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  45. TAP_DANCE_ENABLE = no
  46. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  47. WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
  48. ifeq ($(strip $(ISSI_ENABLE)), yes)
  49. OPT_DEFS += -DISSI_ENABLE
  50. endif
  51. ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  52. OPT_DEFS += -DWATCHDOG_ENABLE
  53. endif