pkg/lwip: remove TCPIP_THREAD_PRIO for ESP32
This definition is platform dependent and should be therefore done with CFLAGS in ESP332's Makefile.
This commit is contained in:
parent
117d6d1f2f
commit
aa3f1329bf
@ -129,6 +129,12 @@ ifneq (,$(filter esp_wifi_any esp_eth,$(USEMODULE)))
|
|||||||
CFLAGS += -DSCHED_PRIO_LEVELS=32
|
CFLAGS += -DSCHED_PRIO_LEVELS=32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter lwip,$(USEMODULE)))
|
||||||
|
# The thread for handling the WiFi hardware has the priority. The priority
|
||||||
|
# of the lwIP TCP/IP thread should be lower than this priority.
|
||||||
|
CFLAGS += -DTCPIP_THREAD_PRIO=2
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += -DSDK_NOT_USED -DCONFIG_FREERTOS_UNICORE=1 -DESP_PLATFORM
|
CFLAGS += -DSDK_NOT_USED -DCONFIG_FREERTOS_UNICORE=1 -DESP_PLATFORM
|
||||||
CFLAGS += -DLOG_TAG_IN_BRACKETS
|
CFLAGS += -DLOG_TAG_IN_BRACKETS
|
||||||
CFLAGS += -Wno-unused-parameter -Wformat=0
|
CFLAGS += -Wno-unused-parameter -Wformat=0
|
||||||
|
|||||||
@ -145,15 +145,6 @@ extern "C" {
|
|||||||
#define TCPIP_THREAD_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
#define TCPIP_THREAD_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#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)
|
#define MEM_ALIGNMENT (4)
|
||||||
#ifndef MEM_SIZE
|
#ifndef MEM_SIZE
|
||||||
/* packet buffer size of GNRC + stack for TCP/IP */
|
/* packet buffer size of GNRC + stack for TCP/IP */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user