From my rough understanding of FreeRTOS, i believe that the critical-sections on CLink_SPI::receive() and CLink_SPI::send() methods are non-effective,
because they exclusion-lock created inside the stack of each method, so it's impossible to share it with any other code;
maybe the original intention of the code for them lock to become an instance-member of the CLink_SPI::class, correct?
From my rough understanding of FreeRTOS, i believe that the critical-sections on
CLink_SPI::receive()
andCLink_SPI::send()
methods are non-effective, because they exclusion-lock created inside the stack of each method, so it's impossible to share it with any other code;maybe the original intention of the code for the
m
lock to become an instance-member of theCLink_SPI::class
, correct?