Question
STM32F4, FreeRTOS: osThreadSuspend and osThreadIsSuspended
In order to access the QSPI flash, I suspend the Touchgfx task from another thread.
The other thread has highest priority. Today the function hang somewhere, maybe at this place:
(void) osThreadSuspend( Task_TouchGFXHandle );
while ( osThreadIsSuspended(Task_TouchGFXHandle) != osOK)
{
osDelay(1);
}
My question: Is it guaranteed that osThreadIsSuspended delivers osOK once after osThreadSuspend and thus no endless loop can occur? Otherwise I would build in a counter and reset in case of a hang.
