Need to give semaphore after creation.
This commit is contained in:
committed by
Raphael Coeffic
parent
421d19bc6b
commit
8c14b80c69
@@ -222,6 +222,7 @@ template<int SIZE>
|
||||
static inline void RTOS_CREATE_MUTEX(RTOS_MUTEX_HANDLE& h)
|
||||
{
|
||||
h.rtos_handle = xSemaphoreCreateBinaryStatic(&h.mutex_struct);
|
||||
xSemaphoreGive(h.rtos_handle);
|
||||
}
|
||||
|
||||
static inline void RTOS_LOCK_MUTEX(RTOS_MUTEX_HANDLE& h)
|
||||
|
||||
Reference in New Issue
Block a user