Skip to main content
denisb-popov
Associate II
Mar 19, 2018 9:01 AM UTC
Question

Invalid implementation of additional specific APIs to Free RTOS ???

Posted on March 19, 2018 at 10:01

/**

* @brief Resume execution of a all suspended threads.

* @retval status code that indicates the execution status of the function.

*/

osStatus osThreadResumeAll (void)

{

   if (xTaskResumeAll() == pdTRUE)

   return osOK; 

   else

   return osErrorOS;

}

MUST always return osOK ???

    This topic has been closed for replies.

    2 replies

    Tilen MAJERLE
    ST Employee
    Mar 19, 2018 9:20 AM UTC
    Posted on March 19, 2018 at 10:20

    Hello

    P.Denis

    ‌,

    if function MUST only returnosOK, then it doesn't make sense to return anything.

    Best regards,

    Tilen

    denisb-popov
    Associate II
    Mar 19, 2018 10:22 AM UTC
    Posted on March 19, 2018 at 10:22

    Agree. Any posibility for '

    If resuming the scheduler caused a context switch then pdTRUE is returned, otherwise pdFALSE is returned.' osError is confusing