File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
components/arduino_tinyusb/patches Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1919 dwc2_regs_t* dwc2 = DWC2_REG(rhport);
2020 const uint8_t epnum = tu_edpt_number(p_endpoint_desc->bEndpointAddress);
2121@@ -266,7 +277,18 @@
22- depctl.bm. set_data0_iso_even = 1;
22+ depctl.set_data0_iso_even = 1;
2323 }
2424 if (dir == TUSB_DIR_IN) {
25- - depctl.bm. tx_fifo_num = epnum;
26- + //depctl.bm. tx_fifo_num = epnum;
25+ - depctl.tx_fifo_num = epnum;
26+ + //depctl.tx_fifo_num = epnum;
2727+ uint8_t fifo_num = epnum;
2828+ #if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
2929+ // Special Case for EP5, which is used by CDC but not actually called by the driver
3434+ fifo_num = get_free_fifo();
3535+ }
3636+ #endif
37- + depctl.bm. tx_fifo_num = fifo_num;
37+ + depctl.tx_fifo_num = fifo_num;
3838 }
3939
4040 dwc2_dep_t* dep = &dwc2->ep[dir == TUSB_DIR_IN ? 0 : 1][epnum];
5656+ #if TU_CHECK_MCU(OPT_MCU_ESP32S2, OPT_MCU_ESP32S3)
5757+ _allocated_fifos = 1;
5858+ #endif
59+
60+ usbd_spin_lock(true);
5961 handle_bus_reset(rhport);
60- }
61-
6262@@ -1008,7 +1037,11 @@
6363
6464 if (gintsts & GINTSTS_USBSUSP) {
You can’t perform that action at this time.
0 commit comments