This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMSIS RTX5 static message queue

Hi. I want to use static memory for message queue in RTX5.
What is the cb_size (size of provided memory for control block ) in osMessageQueueAttr_t.
how to calculate proper size for it?

Parents
  • User can provide memory for Message Queue control block.

    This memory needs to be aligned to words and big enough to hold the control block.

    "cb_mem" should be filled with the pointer to that memory and "cb_size" with the size.

    osRtxMessageQueueCbSize definition can be used to determine the size of required memory.

Reply
  • User can provide memory for Message Queue control block.

    This memory needs to be aligned to words and big enough to hold the control block.

    "cb_mem" should be filled with the pointer to that memory and "cb_size" with the size.

    osRtxMessageQueueCbSize definition can be used to determine the size of required memory.

Children