Skip to content

Commit 91f0cb4

Browse files
fix(usb/host): Fixed Full Speed periodic transfers on ESP32-P4
For FS periodic endpoints 'tokens_per_frame' must be set to 8 LL usb_dwc_ll_hctsiz_set_sched_info() function.
1 parent e5ee420 commit 91f0cb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/hal/usb_dwc_hal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,8 @@ void usb_dwc_hal_chan_set_ep_char(usb_dwc_hal_context_t *hal, usb_dwc_hal_chan_t
395395
} else {
396396
tokens_per_frame = 8; // 1 token every microframe
397397
}
398+
} else {
399+
tokens_per_frame = 8;
398400
}
399401
usb_dwc_ll_hctsiz_set_sched_info(chan_obj->regs, tokens_per_frame, ep_char->periodic.offset);
400402
}

0 commit comments

Comments
 (0)