summaryrefslogtreecommitdiff
path: root/src/common/tusb_private.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-10 16:02:25 +0700
committerhathach <[email protected]>2025-12-10 16:02:25 +0700
commit69bb4e669baa8037868459788c365fa50f13bba6 (patch)
treeeae717978a3cd054b62d5e9962bd549a35447b9e /src/common/tusb_private.h
parentae53e2f9aeada83f27deaf858449a2221f32e5cd (diff)
parent0e48fe862292bb7b3e526a4b42bfa588d97d105e (diff)
Merge branch 'master' into hwfifo_post
Diffstat (limited to 'src/common/tusb_private.h')
-rw-r--r--src/common/tusb_private.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h
index 6dd0fc842..6517d672a 100644
--- a/src/common/tusb_private.h
+++ b/src/common/tusb_private.h
@@ -33,6 +33,18 @@
extern "C" {
#endif
+//--------------------------------------------------------------------+
+// Configuration
+//--------------------------------------------------------------------+
+
+#if CFG_TUD_ENABLED && CFG_TUD_VENDOR && (CFG_TUD_VENDOR_TX_BUFSIZE == 0 || CFG_TUD_VENDOR_RX_BUFSIZE == 0)
+ #define CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED 1
+#endif
+
+#ifndef CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED
+ #define CFG_TUSB_EDPT_STREAM_NO_FIFO_ENABLED 0
+#endif
+
#define TUP_USBIP_CONTROLLER_NUM 2
extern tusb_role_t _tusb_rhport_role[TUP_USBIP_CONTROLLER_NUM];