Adding OSA to MQX example

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding OSA to MQX example

Jump to solution
289 Views
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

Tags (1)
0 Kudos
1 Solution
120 Views
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

View solution in original post

0 Kudos
2 Replies
120 Views
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 Kudos
121 Views
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

View solution in original post

0 Kudos