File tree 3 files changed +118
-390
lines changed
components/arduino_tinyusb
3 files changed +118
-390
lines changed Original file line number Diff line number Diff line change 1
1
--- a/components/arduino_tinyusb/src/dcd_dwc2.c 2024-10-02 12:17:40.000000000 +0300
2
2
+++ b/components/arduino_tinyusb/src/dcd_dwc2.c 2024-10-02 12:19:48.000000000 +0300
3
- @@ -316 ,6 +316,16 @@
3
+ @@ -209 ,6 +209,17 @@
4
4
//--------------------------------------------------------------------
5
5
// Endpoint
6
6
//--------------------------------------------------------------------
14
14
+ return 0;
15
15
+ }
16
16
+ #endif
17
-
17
+ +
18
18
static void edpt_activate(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc) {
19
19
dwc2_regs_t* dwc2 = DWC2_REG(rhport);
20
- @@ -332,7 +342,19 @@
20
+ uint8_t const epnum = tu_edpt_number(p_endpoint_desc->bEndpointAddress);
21
+ @@ -224,7 +235,19 @@
21
22
(p_endpoint_desc->bmAttributes.xfer != TUSB_XFER_ISOCHRONOUS ? DOEPCTL_SD0PID_SEVNFRM : 0) |
22
23
(xfer->max_size << DOEPCTL_MPSIZ_Pos);
23
24
if (dir == TUSB_DIR_IN) {
38
39
}
39
40
40
41
dwc2_dep_t* dep = &dwc2->ep[1 - dir][epnum];
41
- @@ -840 ,6 +862 ,10 @@
42
+ @@ -304 ,6 +327 ,10 @@
42
43
}
43
44
}
44
45
49
50
dfifo_flush_tx(dwc2, 0x10); // all tx fifo
50
51
dfifo_flush_rx(dwc2);
51
52
52
- @@ -1186 ,6 +1212 ,9 @@
53
+ @@ -908 ,6 +935 ,9 @@
53
54
if (int_status & GINTSTS_USBRST) {
54
55
// USBRST is start of reset.
55
56
dwc2->gintsts = GINTSTS_USBRST;
59
60
bus_reset(rhport);
60
61
}
61
62
62
- @@ -1217 ,7 +1246 ,11 @@
63
+ @@ -939 ,7 +969 ,11 @@
63
64
64
65
if (int_status & GINTSTS_USBSUSP) {
65
66
dwc2->gintsts = GINTSTS_USBSUSP;
72
73
}
73
74
74
75
if (int_status & GINTSTS_WKUINT) {
75
- @@ -1234 ,6 +1267 ,9 @@
76
+ @@ -956 ,6 +990 ,9 @@
76
77
77
78
if (otg_int & GOTGINT_SEDET) {
78
79
dcd_event_bus_signal(rhport, DCD_EVENT_UNPLUGGED, true);
You can’t perform that action at this time.
0 commit comments