summaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authortmk <hasu@tmk-kbd.com>2015-09-20 03:48:47 +0200
committertmk <hasu@tmk-kbd.com>2015-09-20 03:48:47 +0200
commitbf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6 (patch)
treea0092278f08ce008f92e9072e576ac30badfd74f /tmk_core
parent0b14b560063ac23de0132da9aae3cade68f7034e (diff)
downloadqmk_firmware-bf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6.tar.gz
qmk_firmware-bf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6.tar.xz
lufa: Fix endpoint bank mode for ATMega32u2
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/lufa/lufa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index 65c215bf8..188fb7b89 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -217,6 +217,9 @@ void EVENT_USB_Device_StartOfFrame(void)
/** Event handler for the USB_ConfigurationChanged event.
* This is fired when the host sets the current configuration of the USB device after enumeration.
+ *
+ * ATMega32u2 supports dual bank(ping-pong mode) only on endpoint 3 and 4,
+ * it is safe to use singl bank for all endpoints.
*/
void EVENT_USB_Device_ConfigurationChanged(void)
{
@@ -241,7 +244,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
#ifdef CONSOLE_ENABLE
/* Setup Console HID Report Endpoints */
ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_IN_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_IN,
- CONSOLE_EPSIZE, ENDPOINT_BANK_DOUBLE);
+ CONSOLE_EPSIZE, ENDPOINT_BANK_SINGLE);
#if 0
ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_OUT_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_OUT,
CONSOLE_EPSIZE, ENDPOINT_BANK_SINGLE);