Command disabled: backlink
 
Available Languages?:

OSA : OS_Squeue_Create

OS_Squeue_Create (squeue, buffer, size)

Not allowed in interrupt

Create queue of simple messages. After creation queue is empty.

OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.

For PIC16, message queues can be allocated only in bank0 or bank1

Call allowed:

Not in interrupt

Parameters:

squeue Queue of simple messages descriptor. Variable of OST_SQUEUE type.
buffer Buffer to store messages. For PIC16, buffer can be allocated only in bank0 or bank1
size Queue size. Can't be greater than buffer size.

Returns:

nothing

Example:

OST_SQUEUE squeue;
OST_SMSG  buffer[10];
 
void Task (void)
{
    OS_Squeue_Create (squeue, buffer, 10);
    for (;;) {
        /*...*/
    }
}

Old style name

OS_CreateQSMsg

See also

 
en/osa/ref/allservices/os_squeue_create.txt · Last modified: 07.10.2010 13:57 (external edit)
 
Creative Commons License Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki