From 9a938eecbd2b70c970992583b5c16da717d8e254 Mon Sep 17 00:00:00 2001 From: tmk Date: Sun, 13 Feb 2011 00:15:51 +0900 Subject: host interface for pjrc --- hhkb/Makefile | 1 - hhkb/config.h | 5 +++++ hhkb/led.c | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hhkb/led.c (limited to 'hhkb') 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) +{ +} + -- cgit v1.2.3