Other Parts Discussed in Thread: SYSBIOS
Tool/software:
Hello,team
I want set the maximum length of a queue like freeRTOS, Queue_create function is not have.
please give me a example.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Are you planning to use TIRTOS (instead of FreeRTOS)?
The TIRTOS Queue is simply a linked list, which is different from FreeRTOS Queue, which is more of an IPC (inter-process communication) that can be pended on.
The TIRTOS equivalent of FreeRTOS Queue, is TIRTOS Mailbox: https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_7_41_00_17/docs/tirtos7/doxygen/m4/html/Mailbox_8h.html
Source code for this may be found in the SDK: C:\ti\simplelink_cc13xx_cc26xx_sdk_7_40_00_77\kernel\tirtos7\packages\ti\sysbios\knl\Mailbox.c
You can statically allocate the Mailbox (size of messages, number of messages), see Mailbox_Construct function for details.
Thanks,
Toby