summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-02-26 14:33:04 +0700
committerhathach <[email protected]>2026-02-26 14:33:04 +0700
commit56fca0076a3ee51ae56dd2fed52b5ac778a2b58e (patch)
treef9a484648e30f73091ef68f8b15b312bcb48e722 /src/common
parent942479407e3bfb4e0800aeb428dc2a3d03d77ded (diff)
refactor, rename to schedule function with usbh_call_after_ms() to use with enumeration delay
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_private.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h
index 43ce7a1df..5a51dfc37 100644
--- a/src/common/tusb_private.h
+++ b/src/common/tusb_private.h
@@ -24,8 +24,8 @@
* This file is part of the TinyUSB stack.
*/
-#ifndef TUSB_PRIVATE_H_
-#define TUSB_PRIVATE_H_
+#ifndef TUSB_PRIVATE_H
+#define TUSB_PRIVATE_H
// Internal Helper used by Host and Device Stack
@@ -33,9 +33,11 @@
extern "C" {
#endif
-//--------------------------------------------------------------------+
-// Configuration
-//--------------------------------------------------------------------+
+typedef void (*tusb_defer_func_t)(uintptr_t param);
+
+ //--------------------------------------------------------------------+
+ // Configuration
+ //--------------------------------------------------------------------+
#define TUP_USBIP_CONTROLLER_NUM 2
extern tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM];