summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-10-07 17:07:53 +0800
committersakumisu <[email protected]>2022-10-07 17:13:12 +0800
commit4bbd460460a737c2ab0381a0f0a3a7ee6bfede9b (patch)
treeff7252e31c332b30517345c110bfecd17f26c725
parent180e7162ef931ea155ae630ceed10c60748bf77d (diff)
update readme
-rw-r--r--README.md2
-rw-r--r--README_zh.md2
-rw-r--r--port/dwc2/usb_hc_dwc2.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 489c1f61..c4445e51 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,7 @@ CherryUSB Host Stack has the following functions:
- Support Communication Device Class (CDC)
- Support Human Interface Device (HID)
- Support Mass Storage Class (MSC)
-- Support USB VIDEO CLASS (UVC1.0, only supports ehci)
+- Support USB VIDEO CLASS
- Support Remote NDIS (RNDIS)
- Support Vendor class
diff --git a/README_zh.md b/README_zh.md
index 012a0130..d19d5207 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -87,7 +87,7 @@ CherryUSB Host 协议栈当前实现以下功能:
- 支持 Communication Device Class (CDC)
- 支持 Human Interface Device (HID)
- 支持 Mass Storage Class (MSC)
-- 支持 USB VIDEO CLASS (UVC1.0, only supports ehci)
+- 支持 USB VIDEO CLASS
- 支持 Remote NDIS (RNDIS)
- 支持 Vendor 类 class
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c
index b7da7546..098d274e 100644
--- a/port/dwc2/usb_hc_dwc2.c
+++ b/port/dwc2/usb_hc_dwc2.c
@@ -409,7 +409,7 @@ static void dwc2_bulk_intr_pipe_init(struct dwc2_pipe *chan, uint8_t *buffer, ui
static void dwc2_iso_pipe_init(struct dwc2_pipe *chan, struct usbh_iso_frame_packet *iso_packet)
{
- chan->num_packets = dwc2_calculate_packet_num(512, chan->ep_addr, chan->ep_mps, &chan->xferlen);
+ chan->num_packets = dwc2_calculate_packet_num(iso_packet->transfer_buffer_length, chan->ep_addr, chan->ep_mps, &chan->xferlen);
dwc2_pipe_transfer(chan->chidx, chan->ep_addr, (uint32_t *)iso_packet->transfer_buffer, chan->xferlen, chan->num_packets, HC_PID_DATA0);
}