This commit is contained in:
hathach
2019-04-02 16:18:36 +07:00
parent 2c1072c0ab
commit 6564580c3d
4 changed files with 39 additions and 29 deletions

View File

@@ -83,7 +83,10 @@ static inline osal_mutex_t osal_mutex_create(osal_mutex_def_t* mdef)
return xSemaphoreCreateMutexStatic(mdef);
}
#define osal_mutex_lock osal_semaphore_wait
static inline bool osal_mutex_lock (osal_mutex_t mutex_hdl, uint32_t msec)
{
return osal_semaphore_wait(mutex_hdl, msec);
}
static inline bool osal_mutex_unlock(osal_mutex_t mutex_hdl)
{