summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-05-08 18:15:40 +0200
committerHiFiPhile <[email protected]>2026-05-08 18:15:40 +0200
commit439e0975e1962caa9bfe21330f6a37d252b9720d (patch)
treefb8a45271c6e6fab77ee5d2e4fd1aa7e8bb9b2e0
parent2471cbc28618971974fcbbb019a37cf5892253e2 (diff)
fix iperf server is always excluded
Signed-off-by: HiFiPhile <[email protected]>
-rw-r--r--examples/device/net_lwip_webserver/src/tusb_config.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/examples/device/net_lwip_webserver/src/tusb_config.h b/examples/device/net_lwip_webserver/src/tusb_config.h
index 24082fe25..74ffeb469 100644
--- a/examples/device/net_lwip_webserver/src/tusb_config.h
+++ b/examples/device/net_lwip_webserver/src/tusb_config.h
@@ -30,8 +30,6 @@
extern "C" {
#endif
-#include "lwipopts.h"
-
//--------------------------------------------------------------------+
// Board Specific Configuration
//--------------------------------------------------------------------+
@@ -122,16 +120,13 @@ extern "C" {
// NCM CLASS CONFIGURATION, SEE "ncm.h" FOR PERFORMANCE TUNING
//--------------------------------------------------------------------
-// Must be >> MTU
-// Can be set to 2048 without impact
-#define CFG_TUD_NCM_IN_NTB_MAX_SIZE (1 * TCP_MSS + 100)
+// CDC-NCM 1.0 Table 6-4 defines 2048 as the minimum required NTB size
+#define CFG_TUD_NCM_IN_NTB_MAX_SIZE 2048
-// Must be >> MTU
-// Can be set to smaller values if wNtbOutMaxDatagrams==1
#if LWIP_HIGH_THROUGHPUT
- #define CFG_TUD_NCM_OUT_NTB_MAX_SIZE (3 * TCP_MSS + 100)
+ #define CFG_TUD_NCM_OUT_NTB_MAX_SIZE 6144
#else
- #define CFG_TUD_NCM_OUT_NTB_MAX_SIZE (2 * TCP_MSS + 100)
+ #define CFG_TUD_NCM_OUT_NTB_MAX_SIZE 2048
#endif
// Number of NCM transfer blocks for reception side