summaryrefslogtreecommitdiff
path: root/hhkb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2011-02-13 00:15:51 +0900
committertmk <nobody@nowhere>2011-02-22 03:09:05 +0900
commit9a938eecbd2b70c970992583b5c16da717d8e254 (patch)
tree22ac37491f88aa60d917a18696c93f61a429d43c /hhkb
parent2b8cd88ab142068eed0a3f230a3de79deb567536 (diff)
host interface for pjrc
Diffstat (limited to 'hhkb')
-rw-r--r--hhkb/Makefile1
-rw-r--r--hhkb/config.h5
-rw-r--r--hhkb/led.c9
3 files changed, 14 insertions, 1 deletions
diff --git a/hhkb/Makefile b/hhkb/Makefile
index 8e771d9557..7c7ed0ee23 100644
--- a/hhkb/Makefile
+++ b/hhkb/Makefile
@@ -9,7 +9,6 @@ TARGET_DIR = .
# keyboard dependent files
TARGET_SRC = tmk.c \
- host_pjrc.c \
keymap.c \
matrix.c \
led.c
diff --git a/hhkb/config.h b/hhkb/config.h
index cc86e55cad..b8392aa8eb 100644
--- a/hhkb/config.h
+++ b/hhkb/config.h
@@ -13,9 +13,14 @@
/* matrix size */
#define MATRIX_ROWS 8
#define MATRIX_COLS 8
+
/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST
+/* key combination for command */
+#define IS_COMMAND() (keyboard_report->mods == (BIT_LSHIFT | BIT_RSHIFT))
+
+
/* USB NKey Rollover */
#ifdef USB_NKRO_ENABLE
#endif
diff --git a/hhkb/led.c b/hhkb/led.c
new file mode 100644
index 0000000000..a961768598
--- /dev/null
+++ b/hhkb/led.c
@@ -0,0 +1,9 @@
+#include "stdint.h"
+#include "led.h"
+
+
+/* HHKB has no LEDs */
+void led_set(uint8_t usb_led)
+{
+}
+