Tool/software: TI-RTOS
Hi
i have two task functions, lets say:
Void task1(UArg arg0, UArg arg1)
{
Semaphore_pend(semHandle, BIOS_WAIT_FOREVER);
//do somthing
Task_sleep(1sek);
Semaphore_post(semHandle);
}
Void task2(UArg arg0, UArg arg1)
{
Semaphore_pend(semHandle, BIOS_WAIT_FOREVER);
//do somthing
Task_sleep(1sek);
Semaphore_post(semHandle);
}
Problem is when task1 is running and reach to point Task_sleep(), then Task2 start to run.
i want task to wait 1sek before it's move to task2
how can i do that?