diff options
author | tmk <nobody@nowhere> | 2010-11-26 01:56:21 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2010-11-26 01:56:21 +0900 |
commit | 37ced39ae2ecfc945c21526faffb2449577bbeb7 (patch) | |
tree | ec32b51a56d17f30cabd80e2bec7081a5f49e5b7 /usb_keyboard.h | |
parent | d6da5546879f9979d043a0b223597af7e8dedbf8 (diff) |
add build option USB_12KRO.
Diffstat (limited to 'usb_keyboard.h')
-rw-r--r-- | usb_keyboard.h | 8 |
1 files changed, 7 insertions, 1 deletions
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; |