summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxieyangrun <[email protected]>2022-03-31 18:06:22 +0800
committersakumisu <[email protected]>2022-03-31 18:40:11 +0800
commitdfa977caa2a614ec3571fc2165d9dcb445c245cd (patch)
tree1c0f6c0de6d2e09950e4e0245011b47a15669162
parenta6ff2668c2c86925bdb7c436eeee3182d2bf9166 (diff)
fixed C standard
-rw-r--r--port/musb/usb_hc_musb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/port/musb/usb_hc_musb.c b/port/musb/usb_hc_musb.c
index a914a0e4..54fa6ab0 100644
--- a/port/musb/usb_hc_musb.c
+++ b/port/musb/usb_hc_musb.c
@@ -564,10 +564,11 @@ int usbh_ep_alloc(usbh_epinfo_t *ep, const struct usbh_endpoint_cfg *ep_cfg)
uint32_t chidx;
uint16_t used = 0;
uint8_t fifo_size;
+ uint8_t old_ep_index;
hport = ep_cfg->hport;
- uint32_t old_index = USBC_GetActiveEp();
+ old_ep_index = USBC_GetActiveEp();
if (ep_cfg->ep_type == USB_ENDPOINT_TYPE_CONTROL) {
if (hport->parent == NULL) {