Hi all,
In the Reference Manual of MQX, I saw that the Queue number is needed for opening a new queue and queue number ranges from a minimum value of 8 to maximum value as defined by MQX initialization structure . I am using K20 processor, my default MQX initialization structure have a maximum number of queues(BSP_DEFAULT_MAX_MSGQS) as 16 so that the user can have only have 9 queues(queue number 8 to queue number 16)?? Can we modify the maximum number of queues in MQX initialization structure??
please explain in detail.
解決済! 解決策の投稿を見る。
Hi
By default, BSP_DEFAULT_MAX_MSGQS is 16, so users can open message queue from 8 to 16.
Users can modify the BSP_DEFAULT_MAX_MSGQS in user_config.h, the maximum number is 255. Please note, message queue will consume system memory.
There is a demo code in mqx directory, for your reference.
C:\Freescale\Freescale_MQX_4_1\mqx\examples\msg
Have a great day,
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
By default, BSP_DEFAULT_MAX_MSGQS is 16, so users can open message queue from 8 to 16.
Users can modify the BSP_DEFAULT_MAX_MSGQS in user_config.h, the maximum number is 255. Please note, message queue will consume system memory.
There is a demo code in mqx directory, for your reference.
C:\Freescale\Freescale_MQX_4_1\mqx\examples\msg
Have a great day,
Daniel
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------