X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboards%2Fhhkb%2Frules.mk;h=3abd31c33a1f800ee3a3439a2e827b77aada69f1;hb=bce391a663d2848bff8ffffca0e4bad771bd3890;hp=b8bfd73d2a13a6ccabda2b548c461fed99c2145a;hpb=a729d852fe502d62e09bab1a31f49b738f8892e4;p=qmk_firmware.git diff --git a/keyboards/hhkb/rules.mk b/keyboards/hhkb/rules.mk index b8bfd73d2..3abd31c33 100644 --- a/keyboards/hhkb/rules.mk +++ b/keyboards/hhkb/rules.mk @@ -72,6 +72,36 @@ CUSTOM_MATRIX = yes # Custom matrix file for the HHKB # UNICODE_ENABLE = yes # Unicode # BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID + +# 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 + +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. +RN42_DIR = rn42 + +SRC += serial_uart.c \ + rn42/suart.S \ + rn42/rn42.c \ + rn42/rn42_task.c \ + rn42/battery.c \ + rn42/main.c + +VPATH += $(RN42_DIR) + +endif + + # debug-on: EXTRAFLAGS += -DDEBUG -DDEBUG_ACTION # debug-on: all