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.

RTOS/AWR1642BOOST: Task_sleep() blocking call

Part Number: AWR1642BOOST

Tool/software: TI-RTOS

Hi,

Does task_sleep() is blocking calls

i has been used in mmw demo application, it blocks the complete functionality. 

Following are snapshot of code in mss_main.c

GPIO_write (SOC_XWR16XX_GPIO_12, 0U);
Task_sleep(100);
GPIO_write (SOC_XWR16XX_GPIO_12, 1U);
Task_sleep(100);

does any other option to add accurate delay ??

  • Hello Madan,
    Task_sleep is blocking call for that Thread but meanwhile, it can switch to other thread if available.

    Can you explain a little bit more in what form it blocks app functionality?

    Alternatively, you can use 'SOC_microDelay' function to add a delay in micro-second granularity.

    Regards,
    Jitendra
  • Thanks Jitendra,
    Task_sleep blocks the mss functionality. not coming out of loop. No exception found from DSS side.

    SOC_microDelay absolutely fine. but upto certain limit of delay. i tested for 10 ms its fine but if i exceeds the delay then DSS throws the exception.

    Regards,
    Madan