take/give semaphore in vApplicationTickHook

jandle wrote on Tuesday, May 29, 2012:

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.

jandle wrote on Tuesday, May 29, 2012:

ah, search first, ask second…

https://sourceforge.net/projects/freertos/forums/forum/382005/topic/3802065