summaryrefslogtreecommitdiff
path: root/src/tusb_option.h
diff options
context:
space:
mode:
authorIngHK <[email protected]>2024-03-30 14:16:13 +0100
committerIngHK <[email protected]>2024-03-31 10:26:39 +0200
commit11a54bc8e185c58fa5c72b6913ac07e3a3060be6 (patch)
tree5ec21cabbc851cc4080df8c66c303c94986f752d /src/tusb_option.h
parent818c64efecfb70d8abfee6b90d53f4af8c452dcf (diff)
renamed define NAK_RETRY_HANDLING to CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME as official option
Diffstat (limited to 'src/tusb_option.h')
-rw-r--r--src/tusb_option.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h
index 22f27e9e1..68eb4882c 100644
--- a/src/tusb_option.h
+++ b/src/tusb_option.h
@@ -529,6 +529,15 @@
#define CFG_TUH_MAX3421 0
#endif
+// MAX3421 Host max. transfer attemps per frame (except control and iso)
+// temporary only one attemp (no retry) per frame allowed (more in work)
+// retry quantity = (CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME - 1)
+// 0 = endless retries in current frame. is default to keep compatibility
+#ifndef CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME
+ #define CFG_TUH_MAX3421_MAX_ATTEMPS_PER_FRAME 0
+#endif
+
+
//--------------------------------------------------------------------+
// TypeC Options (Default)
//--------------------------------------------------------------------+