Commit 9e5b9fe
committed
usb_device.c: Fix EP buffer size limitation for isochronous endpoints
The buffer size for USB endpoints was previously limited by the
endpoints buffer stride, which is 128 bytes * 2 for isochronous
endpoints and 64 bytes for bulk transfers.
According to the USB full-speed specification, the maximum frame size
can go up to 1023 bytes. The RP2040 microcontroller has 4KB of DPSRAM,
which can support this maximum frame size.
This commit removes the 128 bytes * 2 limitation for isochronous
endpoints, allowing support for the full 1023-byte frame size.
Signed-off-by: Khoa Hoang <[email protected]>1 parent 09c64d5 commit 9e5b9fe
File tree
2 files changed
+13
-6
lines changed- src/rp2_common/usb_device
- include/pico
2 files changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
| |||
1137 | 1142 | | |
1138 | 1143 | | |
1139 | 1144 | | |
| 1145 | + | |
| 1146 | + | |
1140 | 1147 | | |
1141 | 1148 | | |
| 1149 | + | |
1142 | 1150 | | |
1143 | | - | |
1144 | 1151 | | |
1145 | 1152 | | |
1146 | 1153 | | |
| |||
0 commit comments