diff options
| author | tmk <hasu@tmk-kbd.com> | 2015-09-20 10:48:47 +0900 |
|---|---|---|
| committer | tmk <hasu@tmk-kbd.com> | 2015-09-20 10:48:47 +0900 |
| commit | bf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6 (patch) | |
| tree | a0092278f08ce008f92e9072e576ac30badfd74f /tmk_core/protocol/lufa/lufa.c | |
| parent | 0b14b560063ac23de0132da9aae3cade68f7034e (diff) | |
| download | qmk_firmware-bf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6.tar.gz qmk_firmware-bf3d4b3c06a0f379ce5f1112b5033faf1a69aeb6.zip | |
lufa: Fix endpoint bank mode for ATMega32u2
Diffstat (limited to 'tmk_core/protocol/lufa/lufa.c')
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 5 |
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) | |||
| 217 | 217 | ||
| 218 | /** Event handler for the USB_ConfigurationChanged event. | 218 | /** Event handler for the USB_ConfigurationChanged event. |
| 219 | * This is fired when the host sets the current configuration of the USB device after enumeration. | 219 | * This is fired when the host sets the current configuration of the USB device after enumeration. |
| 220 | * | ||
| 221 | * ATMega32u2 supports dual bank(ping-pong mode) only on endpoint 3 and 4, | ||
| 222 | * it is safe to use singl bank for all endpoints. | ||
| 220 | */ | 223 | */ |
| 221 | void EVENT_USB_Device_ConfigurationChanged(void) | 224 | void EVENT_USB_Device_ConfigurationChanged(void) |
| 222 | { | 225 | { |
| @@ -241,7 +244,7 @@ void EVENT_USB_Device_ConfigurationChanged(void) | |||
| 241 | #ifdef CONSOLE_ENABLE | 244 | #ifdef CONSOLE_ENABLE |
| 242 | /* Setup Console HID Report Endpoints */ | 245 | /* Setup Console HID Report Endpoints */ |
| 243 | ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_IN_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_IN, | 246 | ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_IN_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_IN, |
| 244 | CONSOLE_EPSIZE, ENDPOINT_BANK_DOUBLE); | 247 | CONSOLE_EPSIZE, ENDPOINT_BANK_SINGLE); |
| 245 | #if 0 | 248 | #if 0 |
| 246 | ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_OUT_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_OUT, | 249 | ConfigSuccess &= ENDPOINT_CONFIG(CONSOLE_OUT_EPNUM, EP_TYPE_INTERRUPT, ENDPOINT_DIR_OUT, |
| 247 | CONSOLE_EPSIZE, ENDPOINT_BANK_SINGLE); | 250 | CONSOLE_EPSIZE, ENDPOINT_BANK_SINGLE); |
