/* This function will be invoked by BSP, when leave interrupt service routine.  */
rt_weak void rt_interrupt_leave(void)
/* This function will be invoked by BSP, when leave interrupt service routine.  */
rt_weak void rt_interrupt_leave(void)
{
    LOG_D("irq is going to leave, irq current nest:%d",
                 (rt_int32_t)rt_atomic_load(&(rt_interrupt_nest)));
    RT_OBJECT_HOOK_CALL(rt_interrupt_leave_hook,());
    rt_atomic_sub(&(rt_interrupt_nest), 1);
}