I recently added code that needs to acquire a semaphore (I suppose I could ignore it for what I want to do…) on a tick hook timer. Since calling
xSemaphoreTake(xMutexMBREGS, usTime)
resets my dsPIC33, I am guessing that I need to use
xSemaphoreTakeFromISR( xSemaphore, pxHigherPriorityTaskWoken )
Is this true?
If so, and if pxHigherPriorityTaskWoken is true, do I really want to make the jump from the tick hook?
The end goal is to monitor data aging of MODBUS registers on the tick timer and to reset them to uninitialized if the app does not refresh them periodically.
take/give semaphore in vApplicationTickHook
take/give semaphore in vApplicationTickHook
ah, search first, ask second…
https://sourceforge.net/projects/freertos/forums/forum/382005/topic/3802065