diff --git a/features/lwipstack/lwipopts.h b/features/lwipstack/lwipopts.h index 3881263969..e2b4d194b8 100644 --- a/features/lwipstack/lwipopts.h +++ b/features/lwipstack/lwipopts.h @@ -111,7 +111,8 @@ #define TCPIP_THREAD_STACKSIZE LWIP_ALIGN_UP(MBED_CONF_LWIP_TCPIP_THREAD_STACKSIZE, 8) #endif -#define TCPIP_THREAD_PRIO (osPriorityNormal) +// Thread priority (osPriorityNormal by default) +#define TCPIP_THREAD_PRIO (MBED_CONF_LWIP_TCPIP_THREAD_PRIORITY) // Thread stack size for lwip system threads #ifndef MBED_CONF_LWIP_DEFAULT_THREAD_STACKSIZE diff --git a/features/lwipstack/mbed_lib.json b/features/lwipstack/mbed_lib.json index 0480acc9fc..2e71793890 100644 --- a/features/lwipstack/mbed_lib.json +++ b/features/lwipstack/mbed_lib.json @@ -104,6 +104,10 @@ "help": "Maximum timeout (ms) for TCP close handshaking timeout", "value": 1000 }, + "tcpip-thread-priority": { + "help": "Priority of lwip TCPIP thread", + "value": "osPriorityNormal" + }, "pbuf-pool-size": { "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.", "value": null