rules.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # MCU name
  2. MCU = atmega32u4
  3. # Processor frequency
  4. F_CPU = 8000000
  5. # Bootloader selection
  6. BOOTLOADER = qmk-dfu
  7. SRC += ../usart.c \
  8. ../ble.c \
  9. ../main.c
  10. OPT_DEFS += -DPROTOCOL_BLE
  11. OPT_DEFS += -DUART_RX1_BUFFER_SIZE=16 -DUART_TX1_BUFFER_SIZE=16
  12. OPT_DEFS += -DUSART1_ENABLED
  13. # Build Options
  14. # change yes to no to disable
  15. #
  16. BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
  17. MOUSEKEY_ENABLE = no # Mouse keys
  18. EXTRAKEY_ENABLE = yes # Audio control and System control
  19. CONSOLE_ENABLE = no # Console for debug
  20. COMMAND_ENABLE = yes # Commands for debug and configuration
  21. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  22. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  23. # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  24. NKRO_ENABLE = no # USB Nkey Rollover
  25. BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
  26. RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
  27. BLUETOOTH_ENABLE = no # Enable Bluetooth
  28. AUDIO_ENABLE = no # Audio output
  29. LTO_ENABLE = yes # Reduce firmware size
  30. VIA_ENABLE = yes # VIA support should be enabled here due to the main() loop will be compiled first.