diff options
| author | sakumisu <[email protected]> | 2025-04-24 19:33:21 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-04-24 19:33:21 +0800 |
| commit | 4edd86c8724eddb1921ecb3a3382f4cf14451a47 (patch) | |
| tree | fbf1e227fad925cda661f6e43c4221c7be42917a | |
| parent | 166795bd72056a3f507312882874c5e1402cb838 (diff) | |
fix(port/dwc2/usb_hc_dwc2): change packet uint8_t to uint16_t
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index 9ffb7cb7..8c0600dd 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -257,7 +257,7 @@ static void dwc2_chan_init(struct usbh_bus *bus, uint8_t ch_num, uint8_t devaddr } /* For IN channel HCTSIZ.XferSize is expected to be an integer multiple of ep_mps size.*/ -static inline void dwc2_chan_transfer(struct usbh_bus *bus, uint8_t ch_num, uint8_t ep_addr, uint8_t *buf, uint32_t size, uint8_t num_packets, uint8_t pid) +static inline void dwc2_chan_transfer(struct usbh_bus *bus, uint8_t ch_num, uint8_t ep_addr, uint8_t *buf, uint32_t size, uint16_t num_packets, uint8_t pid) { __IO uint32_t tmpreg; uint8_t is_oddframe; |
