Available Languages?:

OSA : OS_Queue_Create

OS_Queue_Create (queue, buffer, size)

Not allowed in interrupt

Create queue of pointer to messages. After creation queue is empty.

OS_ENABLE_QUEUE constant must be defined in OSAcfg.h.

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

Call allowed:

Not in interrupt


queue Queue of messages descriptor. Variable of OST_QUEUE 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.




OST_QUEUE queue;
OST_MSG  buffer[10];
void Task (void)
    OS_Queue_Create (queue, buffer, 10);
    for (;;) {

Old style name


See also

en/osa/ref/allservices/os_queue_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