This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/LPSTK-CC1352R: Correct use of Task_sleep

Part Number: LPSTK-CC1352R


Tool/software: Code Composer Studio

Hi,

I am trying to figure out the correct usage of Task_sleep.

In my project, I am having two tasks, task 1 is triggered by task 2 and will sleep for a certain time and then post an event in the second task. The problem I encountered is that sleep function does not work with semaphore so I have to use task_sleep.

 << Here is my task 1

So correct me if I am wrong, in order to sleep for N second, I should use  Task_sleep(N*1000000/Clock_tickPeriod);

If that is correct, what is the maximum time I can sleep with task_sleep? My goal is to sleep for 1 hour, is that possible?

Thanks,

YOYO