summaryrefslogtreecommitdiff
path: root/src/irq.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-06-10 17:58:31 +0800
committerMeco Man <[email protected]>2021-06-10 17:58:31 +0800
commite019a57ff30b9fda5aa43fdc97eac5cca80bbc3b (patch)
tree9a4f0758e43f8f4f641025ffc18a02ca54059a33 /src/irq.c
parent24b4b6cbb9d4b646ed52f1fc996e90f638a7aba6 (diff)
[kernel] 补充endif后缀注释(2)
Diffstat (limited to 'src/irq.c')
-rw-r--r--src/irq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/irq.c b/src/irq.c
index 65fc2ea5e0..e89b8504dc 100644
--- a/src/irq.c
+++ b/src/irq.c
@@ -39,9 +39,7 @@ void rt_interrupt_leave_sethook(void (*hook)(void))
{
rt_interrupt_leave_hook = hook;
}
-#endif
-
-/* #define IRQ_DEBUG */
+#endif /* RT_USING_HOOK */
/**
* @addtogroup Kernel
@@ -53,7 +51,7 @@ void rt_interrupt_leave_sethook(void (*hook)(void))
#define rt_interrupt_nest rt_cpu_self()->irq_nest
#else
volatile rt_uint8_t rt_interrupt_nest = 0;
-#endif
+#endif /* RT_USING_SMP */
/**
* This function will be invoked by BSP, when enter interrupt service routine