mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
fix(freertos): Fix broken portable macro portTRY_ENTER_CRITICAL_SAFE()
This commit fixes a bug where the portTRY_ENTER_CRITICAL_SAFE() for the Xtensa and RISC-V FreeRTOS ports were broken as it did not correctly use the timeout parameter. Merges: https://github.com/espressif/esp-idf/pull/13022
This commit is contained in:
@@ -340,7 +340,12 @@ FORCE_INLINE_ATTR BaseType_t xPortGetCoreID(void)
|
||||
portEXIT_CRITICAL(mux); \
|
||||
} \
|
||||
})
|
||||
#define portTRY_ENTER_CRITICAL_SAFE(mux, timeout) portENTER_CRITICAL_SAFE(mux, timeout)
|
||||
#define portTRY_ENTER_CRITICAL_SAFE(mux, timeout) ({ \
|
||||
(void)timeout; \
|
||||
portENTER_CRITICAL_SAFE(mux); \
|
||||
BaseType_t ret = pdPASS; \
|
||||
ret; \
|
||||
})
|
||||
|
||||
// ---------------------- Yielding -------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user