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
Solved! Go to Solution.
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
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!
-----------------------------------------------------------------------------------------------------------------------
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