Adding OSA to MQX example

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

Adding OSA to MQX example

跳至解决方案
783 次查看
randyhermes
Contributor III

I started a new project by making a copy of the MQX example C:\Freescale\KSDK_1.2.0\rtos\mqx\mqx\examples\hello\build\kds\hello_twrk21f120m.

Now I would like to add OSA support so I can use OSA instead of using MQX calls directly.

Can anyone provide some guidance on doing this?

Thanks Randy

标记 (1)
0 项奖励
回复
1 解答
614 次查看
randyhermes
Contributor III

Hi Sol,

Thank you for the doc.  Unfortunately it does not discuss adding OSA support to a MQX project.

But I believe that I have figured it out.

     add the preprossessor definition FSL_RTOS_MQX

     #include <fsl_os_abstraction.h>

     add calls to OSA_Init() and OSA_Start() to Main().

But I won't be using too many of the OSA features.  Most of them use the light weight versions of MQX items and don't protect against priority inversion.

This make OSA much less useful than it could be.

Thanks,

Randy

在原帖中查看解决方案

0 项奖励
回复
2 回复数
613 次查看
soledad
NXP Employee
NXP Employee

Hello Randy,

Please check the attached document and please let me know if this helps.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
615 次查看
randyhermes
Contributor III

Hi Sol,

Thank you for the doc.  Unfortunately it does not discuss adding OSA support to a MQX project.

But I believe that I have figured it out.

     add the preprossessor definition FSL_RTOS_MQX

     #include <fsl_os_abstraction.h>

     add calls to OSA_Init() and OSA_Start() to Main().

But I won't be using too many of the OSA features.  Most of them use the light weight versions of MQX items and don't protect against priority inversion.

This make OSA much less useful than it could be.

Thanks,

Randy

0 项奖励
回复