You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

  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 = atmel-dfu
  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 # Custom matrix file for the HHKB
  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 - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
  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. # HHKB_RN42_ENABLE = yes # Enable support for hasu's BT alt controller -- code borrowed from tmk source tree.
  29. # Either uncomment the HHKB_RN42_ENABLE line above, or run make enabling the
  30. # feature. Be sure to clean any existing build before trying to enable rn42
  31. # support. For example:
  32. #
  33. # make hhkb-keymap-clean
  34. # make hhkb-keymap-dfu HHKB_RN42_ENABLE=yes
  35. # project specific files
  36. SRC = matrix.c
  37. ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
  38. OPT_DEFS += -DHHKB_RN42_ENABLE
  39. # Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
  40. # HHKB Alt controller.
  41. RN42_DIR = rn42
  42. SRC += serial_uart.c \
  43. rn42/suart.S \
  44. rn42/rn42.c \
  45. rn42/rn42_task.c \
  46. rn42/battery.c \
  47. rn42/main.c
  48. VPATH += $(RN42_DIR)
  49. endif
  50. # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
  51. # debug-on: all
  52. # debug-off: EXTRAFLAGS += -DNO_DEBUG -DNO_PRINT
  53. # debug-off: OPT_DEFS := $(filter-out -DCONSOLE_ENABLE,$(OPT_DEFS))
  54. # debug-off: all