OS_Queue_Send (queue, message)
OS_Queue_Send_I (queue, message)
Send message to queue of messages. If queue is full then wait for free space.
OS_ENABLE_QUEUE constant must be defined in OSAcfg.h.
Only in task
queue |
Queue of messages descriptor. Variable of OST_QUEUE type. |
message |
pointer to message body (OST_MSG) |
nothing
OST_QUEUE queue; void Task (void) { static char Data[20]; for (;;) { /*...*/ OS_Queue_Send (queue, Data); /*...*/ } }
OS_SendQMsg