rules.mk 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. MCU = atmega32u4 # Teensy 2.0
  2. F_CPU = 16000000
  3. ARCH = AVR8
  4. F_USB = $(F_CPU)
  5. # Interrupt driven control endpoint task
  6. OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
  7. BOOTLOADER = lufa-dfu
  8. # Build Options
  9. # change to "no" to disable the options, or define them in the Makefile in
  10. # the appropriate keymap folder that will get included automatically
  11. #
  12. BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
  13. MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
  14. EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
  15. CONSOLE_ENABLE = yes # Console for debug(+400)
  16. COMMAND_ENABLE = yes # Commands for debug and configuration
  17. NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  18. BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
  19. MIDI_ENABLE = no # MIDI controls
  20. AUDIO_ENABLE = no # Audio output on port C6
  21. UNICODE_ENABLE = no # Unicode
  22. UNICODEMAP_ENABLE = yes
  23. BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
  24. RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
  25. # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
  26. SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
  27. #HARDWARE_SERIAL = yes
  28. CUSTOM_MATRIX = yes
  29. SRC += matrix.c led.c
  30. ifdef HARDWARE_SERIAL
  31. SRC += protocol/serial_uart.c
  32. OPT_DEFS += -DHARDWARE_SERIAL
  33. else
  34. SRC += protocol/serial_soft.c
  35. endif
  36. DEFAULT_FOLDER = converter/sun_usb/type5