summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi.XiongHui <[email protected]>2022-06-10 18:11:24 +0800
committersakumisu <[email protected]>2022-06-23 10:26:52 +0800
commit2bd38a0e1cd18803c284a8e2179e6a0ec1518096 (patch)
tree2b4518d0cfb4a231c421dd80f522e5c27e5cb615
parent993ccdac2fe9b13f71afb784e6c73936ee78f17b (diff)
fix type wrong for ep argument on usbd_ep_in_handler and usbd_ep_out_handler function
-rw-r--r--core/usbd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c
index 5dc56614..c80df15c 100644
--- a/core/usbd_core.c
+++ b/core/usbd_core.c
@@ -1251,11 +1251,11 @@ void usbd_event_notify_handler(uint8_t event, void *arg)
break;
case USBD_EVENT_EP_IN_NOTIFY:
- usbd_ep_in_handler((uint32_t)arg);
+ usbd_ep_in_handler((uint8_t)arg);
break;
case USBD_EVENT_EP_OUT_NOTIFY:
- usbd_ep_out_handler((uint32_t)arg);
+ usbd_ep_out_handler((uint8_t)arg);
break;
default: