XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
irq.h
浏览该文件的文档.
1
13#ifndef __xwos_osal_irq_h__
14#define __xwos_osal_irq_h__
15
16#include <xwos/standard.h>
17#include <xwos/osal/jack/irq.h>
18
67{
68 return xwosdl_irq_enable(irqn);
69}
70
83{
84 return xwosdl_irq_disable(irqn);
85}
86
101{
102 return xwosdl_irq_save(irqn, flag);
103}
104
118{
119 return xwosdl_irq_restore(irqn, flag);
120}
121
135{
136 return xwosdl_irq_get_id(irqnbuf);
137}
138
149{
150 xwosdl_cpuirq_enable_lc();
151}
152
163{
164 xwosdl_cpuirq_disable_lc();
165}
166
178{
179 xwosdl_cpuirq_resume_lc();
180}
181
193{
194 xwosdl_cpuirq_suspend_lc();
195}
196
207{
208 xwosdl_cpuirq_restore_lc(cpuirq);
209}
210
221{
222 xwosdl_cpuirq_save_lc(cpuirq);
223}
224
235{
236 return xwosdl_cpuirq_test_lc();
237}
238
243#endif /* xwos/osal/irq.h */
static xwer_t xwos_irq_disable(xwirq_t irqn)
XWOS API:关闭中断
Definition irq.h:82
static bool xwos_cpuirq_test_lc(void)
XWOS API:测试本地CPU的中断开关状态 return 本地CPU的中断状态 retval true: 开启中断 retval false: 关闭中断
Definition irq.h:234
static void xwos_cpuirq_suspend_lc(void)
XWOS API:暂停本地CPU的中断
Definition irq.h:192
static void xwos_cpuirq_enable_lc(void)
XWOS API:开启本地CPU的中断
Definition irq.h:148
static xwer_t xwos_irq_get_id(xwirq_t *irqnbuf)
XWOS API:判断当前的上下文是否为中断上下文,并取得当前中断的中断号
Definition irq.h:134
static void xwos_cpuirq_save_lc(xwreg_t *cpuirq)
XWOS API:保存然后关闭本地CPU的中断开关
Definition irq.h:220
static xwer_t xwos_irq_save(xwirq_t irqn, xwreg_t *flag)
XWOS API:保存中断的开关,然后将其关闭
Definition irq.h:100
static xwer_t xwos_irq_restore(xwirq_t irqn, xwreg_t flag)
XWOS API:恢复中断的开关
Definition irq.h:117
static void xwos_cpuirq_disable_lc(void)
XWOS API:关闭本地CPU的中断
Definition irq.h:162
static void xwos_cpuirq_restore_lc(xwreg_t cpuirq)
XWOS API:恢复本地CPU的中断开关
Definition irq.h:206
static void xwos_cpuirq_resume_lc(void)
XWOS API:恢复本地CPU的中断
Definition irq.h:177
static xwer_t xwos_irq_enable(xwirq_t irqn)
XWOS API:开启中断
Definition irq.h:66
#define __xwos_inline_api
Definition compiler.h:179
signed long xwer_t
Definition type.h:554
signed int xwirq_t
Definition type.h:517
xwptr_t xwreg_t
Definition type.h:409
操作系统抽象层:中断接口描述
XWOS的标准头文件