File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
features/FEATURE_LWIP/lwip-interface Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 80
80
#define DEFAULT_RAW_RECVMBOX_SIZE 8
81
81
#define DEFAULT_ACCEPTMBOX_SIZE 8
82
82
83
+ // Thread stack size for lwip tcpip thread
84
+ #ifndef MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE
85
+ #define MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE 1200
86
+ #endif
87
+
83
88
#ifdef LWIP_DEBUG
84
- #define TCPIP_THREAD_STACKSIZE 1200 *2
89
+ #define TCPIP_THREAD_STACKSIZE MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE *2
85
90
#else
86
- #define TCPIP_THREAD_STACKSIZE 1200
91
+ #define TCPIP_THREAD_STACKSIZE MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE
87
92
#endif
88
93
89
94
#define TCPIP_THREAD_PRIO (osPriorityNormal)
90
95
96
+ // Thread stack size for lwip system threads
97
+ #ifndef MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE
98
+ #define MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE 512
99
+ #endif
100
+
91
101
#ifdef LWIP_DEBUG
92
- #define DEFAULT_THREAD_STACKSIZE 512 *2
102
+ #define DEFAULT_THREAD_STACKSIZE MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE *2
93
103
#else
94
- #define DEFAULT_THREAD_STACKSIZE 512
104
+ #define DEFAULT_THREAD_STACKSIZE MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE
95
105
#endif
96
106
97
107
#define MEMP_NUM_SYS_TIMEOUT 16
Original file line number Diff line number Diff line change 32
32
"udp-socket-max" : {
33
33
"help" : " Maximum number of open UDPSocket instances allowed, including one used internally for DNS. Each requires 84 bytes of pre-allocated RAM" ,
34
34
"value" : 4
35
+ },
36
+ "tcpip-thread-stacksize" : {
37
+ "help" : " Stack size for lwip TCPIP thread" ,
38
+ "value" : 1200
39
+ },
40
+ "default-thread-stacksize" : {
41
+ "help" : " Stack size for lwip system threads" ,
42
+ "value" : 512
35
43
}
36
44
}
37
45
}
You can’t perform that action at this time.
0 commit comments