Skip to content

Commit 937e791

Browse files
author
Seppo Takalo
authored
Merge pull request #10980 from vmedcy/tcpip-thread-priority
LwIP: make TCPIP_THREAD_PRIO configurable
2 parents f2236d2 + 69782a4 commit 937e791

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

features/lwipstack/lwipopts.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@
111111
#define TCPIP_THREAD_STACKSIZE LWIP_ALIGN_UP(MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE, 8)
112112
#endif
113113

114-
#define TCPIP_THREAD_PRIO (osPriorityNormal)
114+
// Thread priority (osPriorityNormal by default)
115+
#define TCPIP_THREAD_PRIO (MBED_CONF_LWIP_TCPIP_THREAD_PRIORITY)
115116

116117
// Thread stack size for lwip system threads
117118
#ifndef MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE

features/lwipstack/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@
104104
"help": "Maximum timeout (ms) for TCP close handshaking timeout",
105105
"value": 1000
106106
},
107+
"tcpip-thread-priority": {
108+
"help": "Priority of lwip TCPIP thread",
109+
"value": "osPriorityNormal"
110+
},
107111
"pbuf-pool-size": {
108112
"help": "Number of pbufs in pool - usually used for received packets, so this determines how much data can be buffered between reception and the application reading. If a driver uses PBUF_RAM for reception, less pool may be needed. Current default (used if null here) is set to 5 in lwipopts.h, unless overridden by target Ethernet drivers.",
109113
"value": null

0 commit comments

Comments
 (0)