cancel
Showing results for 
Search instead for 
Did you mean: 

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

denisb-popov
Associate II
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 ???

2 REPLIES 2
Tilen MAJERLE
ST Employee
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

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