XWOS API
4.0
XWOS C/C++ API参考手册
|
操作系统抽象层:异常与中断 更多...
函数 | |
static xwer_t | xwos_irq_enable (xwirq_t irqn) |
XWOS API:开启中断 | |
static xwer_t | xwos_irq_disable (xwirq_t irqn) |
XWOS API:关闭中断 | |
static xwer_t | xwos_irq_save (xwirq_t irqn, xwreg_t *flag) |
XWOS API:保存中断的开关,然后将其关闭 | |
static xwer_t | xwos_irq_restore (xwirq_t irqn, xwreg_t flag) |
XWOS API:恢复中断的开关 | |
static xwer_t | xwos_irq_get_id (xwirq_t *irqnbuf) |
XWOS API:判断当前的上下文是否为中断上下文,并取得当前中断的中断号 | |
static void | xwos_cpuirq_enable_lc (void) |
XWOS API:开启本地CPU的中断 | |
static void | xwos_cpuirq_disable_lc (void) |
XWOS API:关闭本地CPU的中断 | |
static void | xwos_cpuirq_resume_lc (void) |
XWOS API:恢复本地CPU的中断 | |
static void | xwos_cpuirq_suspend_lc (void) |
XWOS API:暂停本地CPU的中断 | |
static void | xwos_cpuirq_restore_lc (xwreg_t cpuirq) |
XWOS API:恢复本地CPU的中断开关 | |
static void | xwos_cpuirq_save_lc (xwreg_t *cpuirq) |
XWOS API:保存然后关闭本地CPU的中断开关 | |
static bool | xwos_cpuirq_test_lc (void) |
XWOS API:测试本地CPU的中断开关状态 return 本地CPU的中断状态 retval true: 开启中断 retval false: 关闭中断 | |
操作系统抽象层:异常与中断
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
在文件 irq.h 中定义.