mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 16:03:30 +08:00
clarify the context
This commit is contained in:
parent
0d21f37119
commit
305f9946d8
@ -71,7 +71,7 @@ void rt_interrupt_enter(void)
|
|||||||
RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,());
|
RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,());
|
||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
|
|
||||||
RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq nest:%d\n",
|
RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq has come..., irq current nest:%d\n",
|
||||||
rt_interrupt_nest));
|
rt_interrupt_nest));
|
||||||
}
|
}
|
||||||
RTM_EXPORT(rt_interrupt_enter);
|
RTM_EXPORT(rt_interrupt_enter);
|
||||||
@ -87,7 +87,7 @@ void rt_interrupt_leave(void)
|
|||||||
{
|
{
|
||||||
rt_base_t level;
|
rt_base_t level;
|
||||||
|
|
||||||
RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq leave, irq nest:%d\n",
|
RT_DEBUG_LOG(RT_DEBUG_IRQ, ("irq is going to leave, irq current nest:%d\n",
|
||||||
rt_interrupt_nest));
|
rt_interrupt_nest));
|
||||||
|
|
||||||
level = rt_hw_interrupt_disable();
|
level = rt_hw_interrupt_disable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user