May I know is there any different between this two group FreeRTOS API?
Hi all, may I know is there any different between this two group FreeRTOS API function:
xSemaphoreTake()
xSemaphoreGive()
xSemaphoreTakeRecursive()
xSemaphoreGiveRecursive()
xSemaphoreTake()
xSemaphoreGive()
xSemaphoreTakeRecursive()
xSemaphoreGiveRecursive()
Solution
the former are for passing around semaphore and can be used in ISRs and the latter are for recursive semaphores/mutexes ... allowing the same task to take the same mutex multiple times can't be used from an ISR