rules.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # MCU name
  2. MCU = atmega32u4
  3. # Bootloader selection
  4. # Teensy halfkay
  5. # Pro Micro caterina
  6. # Atmel DFU atmel-dfu
  7. # LUFA DFU lufa-dfu
  8. # QMK DFU qmk-dfu
  9. # ATmega32A bootloadHID
  10. # ATmega328P USBasp
  11. BOOTLOADER = caterina
  12. # Build Options
  13. # comment out to disable the options.
  14. #
  15. #BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
  16. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  17. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  18. CONSOLE_ENABLE = yes # Console for debug(+400)
  19. COMMAND_ENABLE = yes # Commands for debug and configuration
  20. CUSTOM_MATRIX = yes # Remote matrix from the wireless bridge
  21. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  22. # SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
  23. NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA
  24. # BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
  25. # MIDI_ENABLE = YES # MIDI controls
  26. UNICODE_ENABLE = YES # Unicode
  27. # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
  28. OPT_DEFS += -DCHIMERA_ERGO_PROMICRO
  29. CHIMERA_ERGO_UPLOAD_COMMAND = while [ ! -r $(USB) ]; do sleep 1; done; \
  30. avrdude -p $(MCU) -c avr109 -U flash:w:$(TARGET).hex -P $(USB)
  31. # # project specific files
  32. SRC = matrix.c
  33. USB = /dev/ttyACM0