Location of portYIELD_FROM_ISR

vandermyer wrote on Tuesday, April 11, 2017:

I’m using the SiLabs EFM32 (Arm Cortex M3) port.

My question is this: does portYIELD_FROM_ISR have to be literally the last statement in an ISR?

Or is it al right for the portYIELD_FROM_ISR statement to be near the end? (Presumeably the closer the end of the ISR the better?)

Any thoughts on this?

rtel wrote on Tuesday, April 11, 2017:

On that device the portYIELD_FROM_ISR() can appear anywhere in the ISR.
NOTE: That statement does not apply to all FreeRTOS ports!

vandermyer wrote on Thursday, April 13, 2017:

Thanks - knowing that means I can use the portYIELD_FROM_ISR correctly in interrupt callback functions from library code.