summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-09 18:07:22 +0200
committerHiFiPhile <[email protected]>2024-05-09 18:07:22 +0200
commitc8beaad2b18b4417ec763fc3dc85476a6480a2f4 (patch)
tree1754c7eea720e59febd6d216b5a84612905a72c2 /src/device/usbd.c
parent6c286e3b027a4873ba70961f48c52f61d3367187 (diff)
Switch to weak default implementation.
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index a3f9126de..f638eb619 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -56,6 +56,10 @@ TU_ATTR_WEAK void tud_event_hook_cb(uint8_t rhport, uint32_t eventid, bool in_is
(void)in_isr;
}
+TU_ATTR_WEAK void tud_sof_cb(uint32_t frame_count) {
+ (void)frame_count;
+}
+
//--------------------------------------------------------------------+
// Device Data
//--------------------------------------------------------------------+
@@ -637,7 +641,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr) {
if ( _usbd_sof.cb_en)
{
TU_LOG_USBD("\r\n");
- if ( tud_sof_cb ) tud_sof_cb(event.sof.frame_count);
+ tud_sof_cb(event.sof.frame_count);
}
break;