mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
Revert "fix(freertos): use xSemaphoreTakeRecursive (#6803)"
This reverts commit 55faa53bcc8a082c407d81b2eb92fc5590aa178f.
This commit is contained in:
parent
e5f67f67b8
commit
9036821843
@ -129,7 +129,7 @@ lv_result_t lv_mutex_lock(lv_mutex_t * pxMutex)
|
|||||||
/* If mutex in uninitialized, perform initialization. */
|
/* If mutex in uninitialized, perform initialization. */
|
||||||
prvCheckMutexInit(pxMutex);
|
prvCheckMutexInit(pxMutex);
|
||||||
|
|
||||||
BaseType_t xMutexTakeStatus = xSemaphoreTakeRecursive(pxMutex->xMutex, portMAX_DELAY);
|
BaseType_t xMutexTakeStatus = xSemaphoreTake(pxMutex->xMutex, portMAX_DELAY);
|
||||||
if(xMutexTakeStatus != pdTRUE) {
|
if(xMutexTakeStatus != pdTRUE) {
|
||||||
LV_LOG_ERROR("xSemaphoreTake failed!");
|
LV_LOG_ERROR("xSemaphoreTake failed!");
|
||||||
return LV_RESULT_INVALID;
|
return LV_RESULT_INVALID;
|
||||||
@ -165,7 +165,7 @@ lv_result_t lv_mutex_unlock(lv_mutex_t * pxMutex)
|
|||||||
/* If mutex in uninitialized, perform initialization. */
|
/* If mutex in uninitialized, perform initialization. */
|
||||||
prvCheckMutexInit(pxMutex);
|
prvCheckMutexInit(pxMutex);
|
||||||
|
|
||||||
BaseType_t xMutexGiveStatus = xSemaphoreGiveRecursive(pxMutex->xMutex);
|
BaseType_t xMutexGiveStatus = xSemaphoreGive(pxMutex->xMutex);
|
||||||
if(xMutexGiveStatus != pdTRUE) {
|
if(xMutexGiveStatus != pdTRUE) {
|
||||||
LV_LOG_ERROR("xSemaphoreGive failed!");
|
LV_LOG_ERROR("xSemaphoreGive failed!");
|
||||||
return LV_RESULT_INVALID;
|
return LV_RESULT_INVALID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user