summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
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