Old FreeRTOS, problem with From_ISR api functions

valpiros2 wrote on Monday, August 05, 2019:

Hi, I am using a STM32F415 with V7.4.0 of FreeRTOS. I am working on an old project and can’t change the FreeRTOS Version.
I am actualy having difficulties with From_ISR functions, cause taskYIELD_FROM_ISR and portYIELD_FROM_ISR are defined nowhere. It seems that I can’t use those. Here is an example of when I use them :
xSemaphoreGiveFromISR (Fin_Env_Semaphore, &xHigherPriorityTaskWoken);
I have looked into many FreeRTOS files and I only seen them in examples /* … */. How could I use those, then ?

rtel wrote on Monday, August 05, 2019:

It might be that you need to use portEND_SWITCHING_ISR() instead - it
does exactly the same thing - just a different name. Is that defined?

valpiros2 wrote on Monday, August 05, 2019:

The only definition of it is that one (in portmacro.h) :
"#define portYIELD() vPortYieldFromISR()
"#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired ) vPortYieldFromISR()

I looked a bit deeper and it’s totaly it, thanks !