2016-08-07 16:04:39 +02:00
|
|
|
# MCU name
|
|
|
|
MCU = atmega32u4
|
|
|
|
|
2019-10-20 21:51:37 +02:00
|
|
|
# Bootloader selection
|
|
|
|
# Teensy halfkay
|
|
|
|
# Pro Micro caterina
|
|
|
|
# Atmel DFU atmel-dfu
|
|
|
|
# LUFA DFU lufa-dfu
|
|
|
|
# QMK DFU qmk-dfu
|
|
|
|
# ATmega32A bootloadHID
|
|
|
|
# ATmega328P USBasp
|
|
|
|
BOOTLOADER = atmel-dfu
|
2016-08-07 16:04:39 +02:00
|
|
|
|
|
|
|
# Build Options
|
|
|
|
# comment out to disable the options.
|
|
|
|
#
|
2020-01-30 19:47:48 +01:00
|
|
|
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
|
|
|
|
MOUSEKEY_ENABLE = yes # Mouse keys
|
|
|
|
EXTRAKEY_ENABLE = yes # Audio control and System control
|
|
|
|
CONSOLE_ENABLE = yes # Console for debug
|
2017-06-30 22:09:52 +02:00
|
|
|
COMMAND_ENABLE = yes # Commands for debug and configuration
|
|
|
|
CUSTOM_MATRIX = yes # Custom matrix file for the HHKB
|
2016-08-07 16:04:39 +02:00
|
|
|
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
2017-06-30 22:09:52 +02:00
|
|
|
# SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
|
|
|
|
# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
|
|
|
# BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
|
|
|
# MIDI_ENABLE = yes # MIDI controls
|
|
|
|
# UNICODE_ENABLE = yes # Unicode
|
|
|
|
# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
|
2016-08-07 16:04:39 +02:00
|
|
|
|
2018-07-10 03:12:59 +02:00
|
|
|
|
|
|
|
# HHKB_RN42_ENABLE = yes # Enable support for hasu's BT alt controller -- code borrowed from tmk source tree.
|
|
|
|
|
|
|
|
# Either uncomment the HHKB_RN42_ENABLE line above, or run make enabling the
|
|
|
|
# feature. Be sure to clean any existing build before trying to enable rn42
|
|
|
|
# support. For example:
|
|
|
|
#
|
|
|
|
# make hhkb-keymap-clean
|
|
|
|
# make hhkb-keymap-dfu HHKB_RN42_ENABLE=yes
|
|
|
|
|
2019-10-20 21:51:37 +02:00
|
|
|
# project specific files
|
|
|
|
SRC = matrix.c
|
|
|
|
|
2018-07-10 03:12:59 +02:00
|
|
|
ifeq ($(strip $(HHKB_RN42_ENABLE)), yes)
|
|
|
|
|
|
|
|
OPT_DEFS += -DHHKB_RN42_ENABLE
|
|
|
|
|
|
|
|
# Support for the RN42 Bluetooth module. This is the BT module in Hasu's BT
|
|
|
|
# HHKB Alt controller.
|
2020-05-30 22:14:59 +02:00
|
|
|
RN42_DIR = ../rn42
|
2018-07-10 03:12:59 +02:00
|
|
|
|
|
|
|
SRC += serial_uart.c \
|
2020-05-30 22:14:59 +02:00
|
|
|
../rn42/suart.S \
|
|
|
|
../rn42/rn42.c \
|
|
|
|
../rn42/rn42_task.c \
|
|
|
|
../rn42/battery.c \
|
|
|
|
../rn42/main.c
|
2018-07-10 03:12:59 +02:00
|
|
|
|
|
|
|
VPATH += $(RN42_DIR)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2017-08-24 04:29:07 +02:00
|
|
|
# debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION
|
|
|
|
# debug-on: all
|
2016-08-07 16:04:39 +02:00
|
|
|
|
2017-08-24 04:29:07 +02:00
|
|
|
# debug-off: EXTRAFLAGS += -DNO_DEBUG -DNO_PRINT
|
|
|
|
# debug-off: OPT_DEFS := $(filter-out -DCONSOLE_ENABLE,$(OPT_DEFS))
|
|
|
|
# debug-off: all
|
2020-04-05 09:29:17 +02:00
|
|
|
|
|
|
|
LAYOUTS = 60_hhkb
|