OS_Squeue_Create (squeue, buffer, size)
Create queue of simple messages. After creation queue is empty.
OS_ENABLE_SQUEUE constant must be defined in OSAcfg.h.
Not in interrupt
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. |
nothing
OST_SQUEUE squeue; OST_SMSG buffer[10]; void Task (void) { OS_Squeue_Create (squeue, buffer, 10); for (;;) { /*...*/ } }
OS_CreateQSMsg