Skip to content

Commit 5d2f010

Browse files
[SL-TEMP] Increasing the lwip thread priority to 32 (osPriorityAboveNormal) (#312)
Co-authored-by: Rohan Sahay <103027015+rosahay-silabs@users.noreply.github.com>
1 parent 367d6f5 commit 5d2f010

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/lwip/silabs/lwipopts-rs911x.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <lwip/lwip_buildconfig.h>
3131
#endif
3232

33+
#include "cmsis_os2.h"
3334
#include <stdlib.h>
3435

3536
#if (SL_MATTER_GN_BUILD == 0)
@@ -69,15 +70,15 @@
6970

7071
#define LWIP_SOCKET 0
7172

73+
#define TCPIP_THREAD_PRIO osPriorityAboveNormal
74+
7275
#ifdef DIC_ENABLE
7376
#define LWIP_DNS 1
7477
#define DNS_RAND_TXID() ((u32_t) rand())
7578
#define TCP_MSS (4 * 1152)
76-
#define TCPIP_THREAD_PRIO (3)
7779
#else
7880
#define LWIP_DNS 0
7981
#define TCP_MSS (1152)
80-
#define TCPIP_THREAD_PRIO (2)
8182
#endif /* DIC_ENABLE */
8283

8384
#define LWIP_FREERTOS_USE_STATIC_TCPIP_TASK 1

src/lwip/silabs/lwipopts-wf200.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <lwip/lwip_buildconfig.h>
3131
#endif
3232

33+
#include "cmsis_os2.h"
3334
#include <stdlib.h>
3435

3536
#if (SL_MATTER_GN_BUILD == 0)
@@ -69,18 +70,18 @@
6970

7071
#define LWIP_SOCKET 0
7172

73+
#define TCPIP_THREAD_PRIO osPriorityAboveNormal
74+
7275
#ifdef DIC_ENABLE
7376
#define LWIP_DNS 1
7477
#define DNS_RAND_TXID() ((u32_t) rand())
7578
#define MEM_SIZE 5632
7679
#define MEMP_NUM_UDP_PCB (6)
7780
#define TCP_MSS (4 * 1152)
78-
#define TCPIP_THREAD_PRIO (3)
7981
#else
8082
#define LWIP_DNS 0
8183
#define MEMP_NUM_UDP_PCB (5)
8284
#define TCP_MSS (1152)
83-
#define TCPIP_THREAD_PRIO (2)
8485
#endif // DIC_ENABLE
8586

8687
#define LWIP_FREERTOS_USE_STATIC_TCPIP_TASK 1

0 commit comments

Comments
 (0)