summaryrefslogtreecommitdiff
path: root/keyboards/hhkb/rules.mk
diff options
context:
space:
mode:
authorEnochen <darakath1128@gmail.com>2018-07-09 21:12:59 -0400
committerDrashna Jaelre <drashna@live.com>2018-07-09 18:12:59 -0700
commit5477bf39bfc01468ea8c09f025cf9c5ee3efd1b7 (patch)
tree06d8c55b03a5ae89353f137e939a531b39d6d43c /keyboards/hhkb/rules.mk
parenta345458fa9ce98b1e69e6a02dbc611fb5a0fe78d (diff)
add hhkb bluetooth functionality (rn42) (#2693)
* add hhkb bluetooth functionality (rn42) pretty much straight from tmk some minor changes to make things work * hhkb jp personal keymap * Revert "hhkb jp personal keymap" This reverts commit 886713d8bb98572f03110f285706a8140a083892.
Diffstat (limited to 'keyboards/hhkb/rules.mk')
-rw-r--r--keyboards/hhkb/rules.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/keyboards/hhkb/rules.mk b/keyboards/hhkb/rules.mk
index b8bfd73d2a..3abd31c33a 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