I have trivial question (I hope), I do not understand something.
extern xQueueHandle xQueue; //ours queue
while(xQueue == NULL) //wait on till queue will be created in other task
So we creating a queue in other task, this task just waiting on when queue is created. xQueueHandle is defined:
typedef void * xQueueHandle;
My doubts are: is it safe if to declare handler to queue like non volatile pointer? General rule is that volatile type should be for example:
"Global variables accessed by multiple tasks within a multi-threaded application"
I understand this like:
typedef void * volatile xQueueHandle;
What are yours thoughts ?