diff options
| author | sakumisu <[email protected]> | 2022-10-19 09:34:52 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-10-19 09:34:52 +0800 |
| commit | 8733607c55ad80ae0d9e598dbc01a409a2325034 (patch) | |
| tree | c788cf1d53d13a8e5fa40a7275a0b410a352e03f | |
| parent | b3fc6394c91145738be905836371e184661d9115 (diff) | |
fix count overflow
| -rw-r--r-- | port/musb/usb_dc_musb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/musb/usb_dc_musb.c b/port/musb/usb_dc_musb.c index 37db83c8..d1e0f86b 100644 --- a/port/musb/usb_dc_musb.c +++ b/port/musb/usb_dc_musb.c @@ -645,7 +645,7 @@ void USBD_IRQHandler(void) uint32_t txis; uint32_t rxis; uint8_t old_ep_idx; - uint8_t write_count, read_count; + uint16_t write_count, read_count; is = HWREGB(USB_BASE + MUSB_IS_OFFSET); txis = HWREGH(USB_BASE + MUSB_TXIS_OFFSET); |
