summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-05-10 21:26:53 +0800
committersakumisu <[email protected]>2025-05-10 21:26:53 +0800
commit336aa91d24643140e1fed01112d6a80962dd2496 (patch)
tree4c6b1a34a8840475728a5b69fc710770e0e1fb1b /core
parent7a0e8cae1a63986a102501309ce82de4c93d12bc (diff)
update(port): add sof support
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'core')
-rw-r--r--core/usbd_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/usbd_core.c b/core/usbd_core.c
index a2ec9ffb..10cfc8b0 100644
--- a/core/usbd_core.c
+++ b/core/usbd_core.c
@@ -1090,6 +1090,11 @@ static void usbd_class_event_notify_handler(uint8_t busid, uint8_t event, void *
}
}
+void usbd_event_sof_handler(uint8_t busid)
+{
+ g_usbd_core[busid].event_handler(busid, USBD_EVENT_SOF);
+}
+
void usbd_event_connect_handler(uint8_t busid)
{
g_usbd_core[busid].event_handler(busid, USBD_EVENT_CONNECTED);