MQX Message Queue Number

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX Message Queue Number

Jump to solution
1,250 Views
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 Kudos
Reply
1 Solution
860 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
861 Views
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 Kudos
Reply