From 37ced39ae2ecfc945c21526faffb2449577bbeb7 Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 26 Nov 2010 01:56:21 +0900 Subject: add build option USB_12KRO. --- usb_keyboard.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'usb_keyboard.h') diff --git a/usb_keyboard.h b/usb_keyboard.h index 6c8fa0b543..872e2afc72 100644 --- a/usb_keyboard.h +++ b/usb_keyboard.h @@ -8,8 +8,10 @@ #define KEYBOARD_INTERFACE 0 #define KEYBOARD_ENDPOINT 1 +#ifdef USB_12KRO #define KEYBOARD_INTERFACE2 4 #define KEYBOARD_ENDPOINT2 5 +#endif #define KEYBOARD_SIZE 8 #define KEYBOARD_BUFFER EP_DOUBLE_BUFFER @@ -26,7 +28,11 @@ #define BIT_LSFT BIT_LSHIFT #define BIT_RSFT BIT_RSHIFT -#define KEYBOARD_REPORT_MAX 12 +#ifdef USB_12KRO +# define KEYBOARD_REPORT_MAX 12 +#else +# define KEYBOARD_REPORT_MAX 6 +#endif typedef struct report { uint8_t keys[KEYBOARD_REPORT_MAX]; uint8_t mods; -- cgit v1.2.3