Hi
1) Assume I have a task coded as below:
void taskFxn(void)
{
while(1)
{
statement1;
statement2;
Task_yield(); //or Task_sleep(x);
statement3;
}
}
Where does execution resume after Task_yield() or Task_sleep() are called when the task resumes?
2) Suppose now I modify the code as below so that it does not call Task_yield() directly but calls a function that calls task yield() again inside
an infinite loop:
void taskFxn(void)
{
while(1)
{
statement1;
statement2;
FunctionA();
statement3;
}
}
void FunctionA(void)
{
while (1)
{
statementA;
Task_yield();//or Task_sleep(x);
statementB;
}
}
Now in this case again where does execution resume after Task_yield() or Task_sleep() are called when the task resumes?
Regards