/* This function will return the next timeout tick in the system.  */
rt_tick_t rt_timer_next_timeout_tick(void)
/* This function will return the next timeout tick in the system.  */
rt_tick_t rt_timer_next_timeout_tick(void)
{
    rt_base_t level;
    rt_tick_t next_timeout = RT_TICK_MAX;
    level = rt_spin_lock_irqsave(&_hard_spinlock);
    _timer_list_next_timeout(_timer_list, &next_timeout);
    rt_spin_unlock_irqrestore(&_hard_spinlock, level);
    return next_timeout;
}