/* Pass control to next thread that is in state READY.  */
osStatus osThreadYield(void)
/* Pass control to next thread that is in state READY.  */
osStatus osThreadYield(void)
{
	rt_err_t result;
	result = rt_thread_yield();
	if (result == RT_EOK)
		return osOK;
	else
		return osErrorOS;
}