fix(freertos): hide mutex-owner check config

This commit is contained in:
Sudeep Mohanty
2026-04-01 16:01:34 +02:00
parent b07620afb6
commit 6ddbfbdb18
3 changed files with 3 additions and 12 deletions
+3 -6
View File
@@ -417,14 +417,11 @@ menu "FreeRTOS"
hook function in their application.
config FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER
# This feature is innately supported in FreeRTOS SMP, and hence not available as a config option when
# FreeRTOS SMP is enabled.
# TODO(IDF-15523): Remove this hidden compatibility option entirely.
# This feature is innately supported in FreeRTOS SMP, and IDF FreeRTOS always enables it.
depends on !FREERTOS_SMP
bool "Check that mutex semaphore is given by owner task"
bool
default y
help
If enabled, assert that when a mutex semaphore is given, the task giving the semaphore is the task
which is currently holding the mutex.
config FREERTOS_ISR_STACKSIZE
int "ISR stack size"
@@ -289,9 +289,6 @@
#ifdef CONFIG_FREERTOS_TLSP_DELETION_CALLBACKS
#define configTHREAD_LOCAL_STORAGE_DELETE_CALLBACKS 1
#endif /* CONFIG_FREERTOS_TLSP_DELETION_CALLBACKS */
#if CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER
#define configCHECK_MUTEX_GIVEN_BY_OWNER 1
#endif /* CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER */
#endif /* !CONFIG_FREERTOS_SMP */
/* ------------------------------------------------ ESP-IDF Additions --------------------------------------------------
@@ -96,8 +96,5 @@ CONFIG_FREERTOS_TASK_FUNCTION_WRAPPER=y
# Thread local storage deletion callbacks
CONFIG_FREERTOS_TLSP_DELETION_CALLBACKS=y
# Mutex owner check
CONFIG_FREERTOS_CHECK_MUTEX_GIVEN_BY_OWNER=y
# Port critical compliance check
CONFIG_FREERTOS_CHECK_PORT_CRITICAL_COMPLIANCE=y