rules.mk 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # MCU name
  2. MCU = atmega32u4
  3. # CPU frequency divided by two since AVR is at 3.3 V
  4. F_CPU = 8000000
  5. # External oscillator is 16 MHz
  6. F_USB = 16000000
  7. # Bootloader selection
  8. BOOTLOADER = atmel-dfu
  9. # Build options
  10. # change yes to no to disable
  11. BOOTMAGIC_ENABLE = no # Bootmagic Lite
  12. MOUSEKEY_ENABLE = no # Mouse keys
  13. EXTRAKEY_ENABLE = yes # Audio control and system control
  14. CONSOLE_ENABLE = no # Console for debug
  15. COMMAND_ENABLE = no # Commands for debug and configuration
  16. DYNAMIC_KEYMAP_ENABLE = yes # Reconfigurable keyboard without flashing firmware
  17. NKRO_ENABLE = yes # USB N-key rollover
  18. RAW_ENABLE = yes # Raw HID commands (used by Keyboard Configurator)
  19. BACKLIGHT_ENABLE = no # RGB backlight (conflicts with RGB matrix)
  20. RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
  21. RGB_MATRIX_ENABLE = yes # RGB matrix
  22. RGB_MATRIX_DRIVER = WS2812
  23. RGB_MATRIX_CUSTOM_KB = yes # Custom keyboard effects
  24. AUDIO_ENABLE = no # Audio output
  25. LTO_ENABLE = yes # Link-time optimization for smaller binary
  26. # Add System76 EC command interface as well as I2C and USB mux drivers
  27. SRC += system76_ec.c usb_mux.c
  28. QUANTUM_LIB_SRC += i2c_master.c