Hello,
I am trying to implement multiple tasks on JN5189 chip using SDK_2.6.1_JN5189 and OSA bare metal implementation (fsl_os_abstraction.c). I got some questions about this:
1. Can I have multiple tasks running in a bare metal implementation ? Is there any example on how to do this ?
2. I tried something by creating 2 tasks: Task1 and Task2 .
Task2 (which has higher priority) is always running. How can I set it back to "Ready" state and give the CPU to Task1 ?
I tried using OSA_TimeDelay() and OSA_TaskYield() but didn't work.
Also, OSA_TaskYield() implementation looks like this:
osaStatus_t OSA_TaskYield(void)
{
return osaStatus_Success;
}
Thanks in advance for your response,
Andrei
Hi Andrei:
If you want to use multiple tasks, I would suggest you use RTOS .
The bare metal 'task' is not a 'real' task as RTOS does.
Regards
Daniel