From dfa977caa2a614ec3571fc2165d9dcb445c245cd Mon Sep 17 00:00:00 2001 From: xieyangrun Date: Thu, 31 Mar 2022 18:06:22 +0800 Subject: fixed C standard --- port/musb/usb_hc_musb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit v1.3.1