Hi.
If I call the osMutexWait() function before the RTX osKernelInitialize() function is executed, an error is returned naturally. After that, I call the osKernelInitialize() function. Is there any adverse effect of reading the osMutexWait() function?What kind of scene is, the two devices (EEPROM and ADC) accessed by SPI I/F are exclusively controlled by MUTEX, but it is necessary to read the EEPROM before starting the thread when the power is turned on.Thank you.
jun
Maybe this example is easier for you to understand:
you are trying to get into a construction site, where the building is still not yet being built. At the entrance, you see a warning sign "Enter at your own risk!". But you still want to build and use your own room at this empty construction site right now. What do you expect to happen?
The warning sign might have already told you what will happen...
Thank you for your reply.
OK. I want to be at my own risk, follow the specifications, or do it in a risk-free manner. (It is wise to follow the specifications)I apologize for the trouble.Have a good day!
Hi,
if you know that the mutex is not required when the Kernal is not running, but you want to use the same function, you could
use osKernelGetState. If Kernel is not running, do not use the mutex
if Kernel is running use the mutex
Thank you for your reply. Well, that kind of usage is supposed. OK. Thank you very much.
there's an echo in here!