summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2026-03-04 15:24:11 +0700
committerGitHub <[email protected]>2026-03-04 15:24:11 +0700
commit13e0b0c4f149016c829f039dc082151bca01174f (patch)
tree512d9340830a3cab772a7e89a1dc271d31446cf7 /src/common
parenta8a4db3721cccd32c8e998a7aa816719294d7a66 (diff)
parente4950e9b693171f7bb47d8c1f800ece8827242ec (diff)
Merge pull request #3490 from Precidata/non-blocking-host-v2
Fully asynchrounous host code (v2)
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];