MQX Message Queue Number

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX Message Queue Number

ソリューションへジャンプ
1,246件の閲覧回数
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 解決策
856件の閲覧回数
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 返信
857件の閲覧回数
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 件の賞賛
返信