summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-05-31 22:25:14 +0700
committerGitHub <[email protected]>2022-05-31 22:25:14 +0700
commitfdeac8508be5cdd95966422d1e776604efbc9b3f (patch)
treee3e1ddf37ebd5500145ac610239f2d5baeceb6fa /src/device/usbd.h
parentab7c23a787a024dcaadb698c9d7533ad85209cd7 (diff)
parente384d16d576089daa3a5c993ead06cffb7a50cbe (diff)
Merge pull request #1381 from hathach/add-sof-isr
Add SOF IRQ Handler
Diffstat (limited to 'src/device/usbd.h')
-rw-r--r--src/device/usbd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 964cfb992..f1312f6ec 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -33,6 +33,8 @@
extern "C" {
#endif
+// typedef void (*tud_sof_isr_t) (uint32_t frame_count);
+
//--------------------------------------------------------------------+
// Application API
//--------------------------------------------------------------------+
@@ -93,6 +95,10 @@ bool tud_disconnect(void);
// Return false on unsupported MCUs
bool tud_connect(void);
+// Set Start-of-frame (1ms interval) IRQ handler
+// NULL means disabled, frame_count may not be supported on mcus
+// void tud_sof_isr_set(tud_sof_isr_t sof_isr);
+
// Carry out Data and Status stage of control transfer
// - If len = 0, it is equivalent to sending status only
// - If len > wLength : it will be truncated