Skip to content

Commit 66f1e77

Browse files
facchinmturmary
authored andcommitted
Revert "USBDevice: interrupts are now enabled on init"
This reverts commit a8d208a. Fixes arduino#423 on Linux/Mac (and Windows when Arduino standard drivers are uninstalled) Fix for normal behaviour on Windows is ongoing
1 parent baa0d7b commit 66f1e77

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

cores/arduino/USB/CDC.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ bool CDC_Setup(USBSetup &setup)
139139
return false;
140140
}
141141

142+
/*
143+
Serial_::Serial_(USBDeviceClass &_usb) : PluggableUSBModule(3, 2, epType), usb(_usb), stalled(false)
144+
{
145+
epType[0] = USB_ENDPOINT_TYPE_INTERRUPT | USB_ENDPOINT_IN(0);
146+
epType[1] = USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_OUT(0);
147+
epType[2] = USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0);
148+
PluggableUSB().plug(this);
149+
}
150+
*/
151+
142152
void Serial_::begin(uint32_t /* baud_count */)
143153
{
144154
// uart config is ignored in USB-CDC

cores/arduino/USB/USBCore.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -525,10 +525,6 @@ void USBDeviceClass::initEP(uint32_t ep, uint32_t config)
525525
{
526526
usbd.epBank1SetSize(ep, 64);
527527
usbd.epBank1SetAddress(ep, &udd_ep_in_cache_buffer[ep]);
528-
529-
// NAK on endpoint IN, the bank is not yet filled in.
530-
usbd.epBank1ResetReady(ep);
531-
532528
usbd.epBank1SetType(ep, 3); // BULK IN
533529
}
534530
else if (config == USB_ENDPOINT_TYPE_CONTROL)

0 commit comments

Comments
 (0)