MQX Message Queue Number

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MQX Message Queue Number

跳至解决方案
1,248 次查看
murugan_m
Contributor II

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.

0 项奖励
回复
1 解答
858 次查看
danielchen
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
859 次查看
danielchen
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复