diff options
Diffstat (limited to 'tmk_core/protocol/lufa')
| -rw-r--r-- | tmk_core/protocol/lufa/descriptor.h | 12 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 9 | 
2 files changed, 14 insertions, 7 deletions
| diff --git a/tmk_core/protocol/lufa/descriptor.h b/tmk_core/protocol/lufa/descriptor.h index 316650a7b1..c6c94e3618 100644 --- a/tmk_core/protocol/lufa/descriptor.h +++ b/tmk_core/protocol/lufa/descriptor.h @@ -1,4 +1,4 @@ -/*  +/*   * Copyright 2012,2013 Jun Wako <wakojun@gmail.com>   * This file is based on:   *     LUFA-120219/Demos/Device/Lowlevel/KeyboardMouse @@ -129,13 +129,13 @@ typedef struct  #   define MOUSE_INTERFACE          (KEYBOARD_INTERFACE + 1)  #else  #   define MOUSE_INTERFACE          KEYBOARD_INTERFACE -#endif  +#endif  #ifdef EXTRAKEY_ENABLE  #   define EXTRAKEY_INTERFACE       (MOUSE_INTERFACE + 1)  #else  #   define EXTRAKEY_INTERFACE       MOUSE_INTERFACE -#endif  +#endif  #ifdef CONSOLE_ENABLE  #   define CONSOLE_INTERFACE        (EXTRAKEY_INTERFACE + 1) @@ -171,7 +171,7 @@ typedef struct  #define KEYBOARD_IN_EPNUM           1  #ifdef MOUSE_ENABLE -#   define MOUSE_IN_EPNUM           (KEYBOARD_IN_EPNUM + 1)  +#   define MOUSE_IN_EPNUM           (KEYBOARD_IN_EPNUM + 1)  #else  #   define MOUSE_IN_EPNUM           KEYBOARD_IN_EPNUM  #endif @@ -179,7 +179,7 @@ typedef struct  #ifdef EXTRAKEY_ENABLE  #   define EXTRAKEY_IN_EPNUM        (MOUSE_IN_EPNUM + 1)  #else -#   define EXTRAKEY_IN_EPNUM        MOUSE_IN_EPNUM  +#   define EXTRAKEY_IN_EPNUM        MOUSE_IN_EPNUM  #endif  #ifdef CONSOLE_ENABLE @@ -226,7 +226,7 @@ typedef struct  #define MOUSE_EPSIZE                8  #define EXTRAKEY_EPSIZE             8  #define CONSOLE_EPSIZE              32 -#define NKRO_EPSIZE                 16 +#define NKRO_EPSIZE                 32  #define MIDI_STREAM_EPSIZE          64  #define CDC_NOTIFICATION_EPSIZE     8  #define CDC_EPSIZE                  16 diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 9b201374a2..01c0e45b0b 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -52,6 +52,13 @@  #include "descriptor.h"  #include "lufa.h" +#ifdef NKRO_ENABLE +  #include "keycode_config.h" + +  extern keymap_config_t keymap_config; +#endif + +  #ifdef AUDIO_ENABLE      #include <audio.h>  #endif @@ -502,7 +509,7 @@ static void send_keyboard(report_keyboard_t *report)      /* Select the Keyboard Report Endpoint */  #ifdef NKRO_ENABLE -    if (keyboard_protocol && keyboard_nkro) { +    if (keyboard_protocol && keymap_config.nkro) {          /* Report protocol - NKRO */          Endpoint_SelectEndpoint(NKRO_IN_EPNUM); | 
