rules.mk 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. SRC += matrix.c TWIlib.c issi.c lighting.c
  2. # MCU name
  3. MCU = atmega32u4
  4. #
  5. # LUFA specific
  6. #
  7. # Target architecture (see library "Board Types" documentation).
  8. ARCH = AVR8
  9. # Input clock frequency.
  10. # This will define a symbol, F_USB, in all source code files equal to the
  11. # input clock frequency (before any prescaling is performed) in Hz. This value may
  12. # differ from F_CPU if prescaling is used on the latter, and is required as the
  13. # raw input clock is fed directly to the PLL sections of the AVR for high speed
  14. # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
  15. # at the end, this will be done automatically to create a 32-bit value in your
  16. # source code.
  17. #
  18. # If no clock division is performed on the input clock inside the AVR (via the
  19. # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
  20. F_USB = $(F_CPU)
  21. # Bootloader
  22. # This definition is optional, and if your keyboard supports multiple bootloaders of
  23. # different sizes, comment this out, and the correct address will be loaded
  24. # automatically (+60). See bootloader.mk for all options.
  25. BOOTLOADER = caterina
  26. # Interrupt driven control endpoint task(+60)
  27. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  28. # Bootloader selection
  29. # Teensy halfkay
  30. # Pro Micro caterina
  31. # Atmel DFU atmel-dfu
  32. # LUFA DFU lufa-dfu
  33. # QMK DFU qmk-dfu
  34. # atmega32a bootloadHID
  35. BOOTLOADER = caterina
  36. # Build Options
  37. # change yes to no to disable
  38. #
  39. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  40. MOUSEKEY_ENABLE = no # Mouse keys(+4700)
  41. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  42. CONSOLE_ENABLE = no # Console for debug(+400)
  43. COMMAND_ENABLE = no # Commands for debug and configuration
  44. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  45. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  46. # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  47. NKRO_ENABLE = no # USB Nkey Rollover
  48. MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
  49. UNICODE_ENABLE = no # Unicode
  50. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  51. AUDIO_ENABLE = no # Audio output on port C6
  52. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
  53. FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
  54. BACKLIGHT_CUSTOM_DRIVER = yes
  55. BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality, also set ISSI_ENABLE below for Miera
  56. ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
  57. CUSTOM_MATRIX = yes
  58. #ifeq ($(strip $(ISSI_ENABLE)), yes)
  59. # TMK_COMMON_DEFS += -DISSI_ENABLE
  60. #endif
  61. #
  62. #ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
  63. # TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
  64. #endif
  65. DEFAULT_FOLDER = meira/promicro
  66. LAYOUTS = ortho_4x12