Thread safe memory allocation

richard_damon wrote on Tuesday, August 20, 2019:

But you can’t call vPortEnterCritical inside an ISR, so it doesn’t solve the problem. (Now, I don’t use the STM code that uses malloc inside and ISR, I find a lot of the STM application support code desearving of replacement)