perf: Use FreeRTOS mutex instead of binary semaphore (#3935)
This commit is contained in:
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user