summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-07-01 21:21:53 +0800
committersakumisu <[email protected]>2025-07-01 21:21:59 +0800
commit832e4c45fb659214d9ab9f8edee71e248f8aa96b (patch)
treea185d2734e95bb5becf85f9004da6016e5c6977a /core
parent52ea7e8dcfb96d01a1fade18ea29a15685eda5ca (diff)
fix(class/hub): change urb interval unit to us
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'core')
-rw-r--r--core/usbh_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usbh_core.h b/core/usbh_core.h
index 1bed410d..6f4c2bb3 100644
--- a/core/usbh_core.h
+++ b/core/usbh_core.h
@@ -47,7 +47,7 @@ extern "C" {
#define CLASS_INFO_DEFINE __attribute__((section(".usbh_class_info"))) __USED __ALIGNED(1)
#endif
-#define USBH_GET_URB_INTERVAL(interval, speed) (speed < USB_SPEED_HIGH ? interval : (1 << (interval - 1)))
+#define USBH_GET_URB_INTERVAL(interval, speed) (speed < USB_SPEED_HIGH ? (interval * 1000) : ((1 << (interval - 1)) * 125))
#define USBH_EP_INIT(ep, ep_desc) \
do { \