Skip to content

Commit 9ac343a

Browse files
committed
finally get rp2040 host epx working with 2-sof solution for switching
1 parent 660c8ca commit 9ac343a

File tree

4 files changed

+189
-140
lines changed

4 files changed

+189
-140
lines changed

src/portable/raspberrypi/rp2040/dcd_rp2040.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static void __tusb_irq_path_func(handle_hw_buff_status)(void) {
164164
while (buf_status) {
165165
// ctz/clz is faster than loop which has only a few bit set in general
166166
const uint8_t i = (uint8_t) __builtin_ctz(buf_status);
167-
const uint bit = TU_BIT(i);
167+
const uint32_t bit = TU_BIT(i);
168168

169169
// IN transfer for even i, OUT transfer for odd i
170170
const uint8_t epnum = i >> 1u;

0 commit comments

Comments
 (0)