OSA : OS_Msg_Create

OS_Msg_Create (msg_cb)

Not allowed in interrupt

Create a pointer to message. After creation message is absent and pointer is zero.

Call allowed:

Not in interrupt

Parameters:

msg_cb Pointer to message descriptor. Variable of OST_MSG_CB type

Returns:

nothing

Example:

OST_MSG_CB msg_cb;
 
void Task (void)
{
    OS_Msg_Create (msg_cb);
    for (;;) {
        /*...*/
    }
}

Old style name

OS_CreateMsg

See also