/* This function will let current thread delay for some milliseconds. */
rt_err_t rt_thread_mdelay(rt_int32_t ms)
/* This function will let current thread delay for some milliseconds. */
rt_err_t rt_thread_mdelay(rt_int32_t ms)
{
    rt_tick_t tick;
    tick = rt_tick_from_millisecond(ms);
    return rt_thread_sleep(tick);
}