summaryrefslogtreecommitdiff
path: root/keyboard/hhkb/Makefile
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-07-09 15:31:52 +0900
committertmk <nobody@nowhere>2014-07-09 15:31:52 +0900
commit60134830506043be0c6d9d5ab37cf65dad3cc85f (patch)
treef91ca27dd87dbae4c137dfa2e39fc059d67902d3 /keyboard/hhkb/Makefile
parent34373185b746ae5b49cf56ac956080525c7dd6f8 (diff)
Add HHKB JP support
- scan matrix about twice faster
Diffstat (limited to 'keyboard/hhkb/Makefile')
-rw-r--r--keyboard/hhkb/Makefile28
1 files changed, 21 insertions, 7 deletions
diff --git a/keyboard/hhkb/Makefile b/keyboard/hhkb/Makefile
index 030283d7ad..c945467dd2 100644
--- a/keyboard/hhkb/Makefile
+++ b/keyboard/hhkb/Makefile
@@ -53,12 +53,6 @@ SRC += keymap_common.c \
matrix.c \
led.c
-ifdef KEYMAP
- SRC := keymap_$(KEYMAP).c $(SRC)
-else
- SRC := keymap_hhkb.c $(SRC)
-endif
-
CONFIG_H = config.h
@@ -123,7 +117,27 @@ EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
COMMAND_ENABLE = yes # Commands for debug and configuration
NKRO_ENABLE = yes # USB Nkey Rollover
-KEYMAP_SECTION_ENABLE = yes # fixed address keymap for keymap editor
+#KEYMAP_SECTION_ENABLE = yes # fixed address keymap for keymap editor
+#HHKB_JP = yes # HHKB JP support
+
+
+ifdef HHKB_JP
+ OPT_DEFS += -DHHKB_JP
+endif
+
+
+#
+# Keymap file
+#
+ifdef KEYMAP
+ SRC := keymap_$(KEYMAP).c $(SRC)
+else
+ ifdef HHKB_JP
+ SRC := keymap_jp.c $(SRC)
+ else
+ SRC := keymap_hhkb.c $(SRC)
+ endif
+endif
# Search Path