perf: Use FreeRTOS mutex instead of binary semaphore (#3935)

This commit is contained in:
Raphael Coeffic
2023-10-01 11:54:27 +10:00
committed by GitHub
parent 54cc71c494
commit c0744f2af3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ extern uint32_t SystemCoreClock;
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1
// Use notifications
#define configUSE_MUTEXES 0
#define configUSE_MUTEXES 1
#define configQUEUE_REGISTRY_SIZE 0
#define configUSE_RECURSIVE_MUTEXES 0
#define configUSE_MALLOC_FAILED_HOOK 0
+1 -1
View File
@@ -206,7 +206,7 @@ extern "C++" {
static inline void _RTOS_CREATE_MUTEX(RTOS_MUTEX_HANDLE* h)
{
h->rtos_handle = xSemaphoreCreateBinaryStatic(&h->mutex_struct);
h->rtos_handle = xSemaphoreCreateMutexStatic(&h->mutex_struct);
xSemaphoreGive(h->rtos_handle);
}