Merge pull request #12948 from gschorcht/pkg/lwip/lwipopts_fix_cleanup

pkg/lwip: overiddable settings in lwipopts.h
This commit is contained in:
benpicco 2019-12-16 10:43:34 +01:00 committed by GitHub
commit 50f5060e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -129,6 +129,12 @@ ifneq (,$(filter esp_wifi_any esp_eth,$(USEMODULE)))
CFLAGS += -DSCHED_PRIO_LEVELS=32
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 += -DLOG_TAG_IN_BRACKETS
CFLAGS += -Wno-unused-parameter -Wformat=0

View File

@ -141,15 +141,8 @@ extern "C" {
#define MEMP_MEM_MALLOC (1)
#define NETIF_MAX_HWADDR_LEN (GNRC_NETIF_HDR_L2ADDR_MAX_LEN)
#ifndef TCPIP_THREAD_STACKSIZE
#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)