/* This function will return the nest of interrupt. 
User application can invoke this function to get whether current context is interrupt context. */
RT_WEAK rt_uint8_t rt_interrupt_get_nest(void)
/* This function will return the nest of interrupt. 
User application can invoke this function to get whether current context is interrupt context. */
RT_WEAK rt_uint8_t rt_interrupt_get_nest(void)
{
    rt_uint8_t ret;
    rt_base_t level;
    level = rt_hw_interrupt_disable();
    ret = rt_interrupt_nest;
    rt_hw_interrupt_enable(level);
    return ret;
}