Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

RTOS: Task, Timer

$
0
0

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?


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>