mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
pkg/lwip: override TPCIP_THREAD_PRIO for ESP32
To avoid priority conflicts with the WiFi hardware driver thread which has priority of 1, the default thread priority of lwIP's TCP/IP thread is decreased to 2.
This commit is contained in:
parent
d4f818b5f3
commit
f5af8ac2a4
@ -143,6 +143,15 @@ extern "C" {
|
||||
|
||||
#define TCPIP_THREAD_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
||||
|
||||
#if defined(CPU_ESP32) && !defined(DOXYGEN)
|
||||
/**
|
||||
* In ESP32, the thread that is dealing with hardware interrupts of the WiFi
|
||||
* interface has a priority of 1. This thread should have a higher priority
|
||||
* than lwIP's TCP/IP thread.
|
||||
*/
|
||||
#define TCPIP_THREAD_PRIO (2)
|
||||
#endif
|
||||
|
||||
#define MEM_ALIGNMENT (4)
|
||||
#ifndef MEM_SIZE
|
||||
/* packet buffer size of GNRC + stack for TCP/IP */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user