Skip to content

Commit

Permalink
ESP32: Fix the menuconfig option description for LwIP thread safety (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
wqx6 authored Feb 12, 2025
1 parent d0e4459 commit b99f977
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/esp32/components/chip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,15 @@ menu "CHIP Core"
help
Enable this option to start a UDP Endpoint queue filter for mDNS Broadcast packets

config ENABLE_LWIP_THREAD_SAFETY
bool "Enable LwIP Thread safety options"
config USE_TCPIP_CORE_LOCK_FOR_THREAD_SAFETY
bool "Use TCPIP core locking for LwIP thread safety"
default y
select LWIP_TCPIP_CORE_LOCKING
select LWIP_CHECK_THREAD_SAFETY
help
CHIP SDK performs LwIP core locking before calling an LwIP API.
To make the calls thread safe we have to enable LWIP_TCPIP_CORE_LOCKING.
Otherwise CHIP SDK will post LwIP APIs to TCPIP task to ensure thread safety.
Here, we are also enabling LWIP_CHECK_THREAD_SAFETY which will assert when
LwIP code gets called from any other context or without holding the LwIP lock.

Expand Down

0 comments on commit b99f977

Please sign in to comment.