File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ void EVENT_USB_Device_StartOfFrame(void)
217
217
218
218
/** Event handler for the USB_ConfigurationChanged event.
219
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
224
void EVENT_USB_Device_ConfigurationChanged (void )
222
225
{
@@ -241,7 +244,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
241
244
#ifdef CONSOLE_ENABLE
242
245
/* Setup Console HID Report Endpoints */
243
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
248
#if 0
246
249
ConfigSuccess &= ENDPOINT_CONFIG (CONSOLE_OUT_EPNUM , EP_TYPE_INTERRUPT , ENDPOINT_DIR_OUT ,
247
250
CONSOLE_EPSIZE , ENDPOINT_BANK_SINGLE );
You can’t perform that action at this time.
0 commit comments