Adding OSA to MQX example

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

Adding OSA to MQX example

ソリューションへジャンプ
900件の閲覧回数
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 解決策
731件の閲覧回数
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 返答(返信)
730件の閲覧回数
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 件の賞賛
返信
732件の閲覧回数
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 件の賞賛
返信