📄 irq.c.svn-base
字号:
/* * File : irq.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006, RT-Thread Development Team * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.fayfayspace.org/license/LICENSE. * * Change Logs: * Date Author Notes * 2006-02-24 Bernard first version * 2006-05-03 Bernard add IRQ_DEBUG */#include <rtthread.h>// #define IRQ_DEBUG/** * @addtogroup Kernel *//*@{*/rt_uint32 rt_interrupt_nest;/** * @brief enter interrupt service routine * * this function will be invoked by BSP, when enter interrupt service routine * * @note please don't not invoke this routine in application * * @see rt_interrupt_leave */void rt_interrupt_enter(){#ifdef IRQ_DEBUG rt_kprintf("irq comming..., irq nest:%d\n", rt_interrupt_nest);#endif rt_interrupt_nest ++;}/** * @brief enter interrupt service routine * * this function will be invoked by BSP, when leave interrupt service routine * * @note please don't not invoke this routine in application * * @see rt_interrupt_enter */void rt_interrupt_leave(){#ifdef IRQ_DEBUG rt_kprintf("irq leave, irq nest:%d\n", rt_interrupt_nest);#endif rt_interrupt_nest --;}/*@}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -