XWOS API
4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
eirq.h
浏览该文件的文档.
1
21
#ifndef __xwcd_ds_soc_eirq_h__
22
#define __xwcd_ds_soc_eirq_h__
23
24
#include <
xwcd/ds/standard.h
>
25
#include <
xwcd/ds/soc/chip.h
>
26
35
#define XWDS_EIRQ(x) ((xwid_t)x)
36
40
enum
xwds_soc_ei_flag_em
{
41
XWDS_SOC_EIF_TM_RISING
=
XWBOP_BIT
(0),
42
XWDS_SOC_EIF_TM_FALLING
=
XWBOP_BIT
(1),
43
XWDS_SOC_EIF_TM_EITHER
= (
XWDS_SOC_EIF_TM_RISING
|
44
XWDS_SOC_EIF_TM_FALLING
),
45
XWDS_SOC_EIF_TM_LOW
=
XWBOP_BIT
(2),
46
XWDS_SOC_EIF_TM_HIGH
=
XWBOP_BIT
(3),
47
XWDS_SOC_EIF_TM_MASK
= (
XWDS_SOC_EIF_TM_RISING
|
XWDS_SOC_EIF_TM_FALLING
|
48
XWDS_SOC_EIF_TM_LOW
|
XWDS_SOC_EIF_TM_HIGH
),
49
XWDS_SOC_EIF_WKUP
=
XWBOP_BIT
(4),
50
XWDS_SOC_EIF_DMA
=
XWBOP_BIT
(5),
51
};
52
69
xwer_t
xwds_eirq_req
(
struct
xwds_soc
* soc,
xwid_t
port,
xwsq_t
pinmask,
70
xwid_t
eiid,
xwsq_t
eiflag,
71
xwds_eirq_f
isr,
xwds_eirq_arg_t
arg);
72
86
xwer_t
xwds_eirq_rls
(
struct
xwds_soc
* soc,
xwid_t
port,
xwsq_t
pinmask,
87
xwid_t
eiid);
88
93
#endif
/* xwcd/ds/soc/eirq.h */
XWDS_SOC_EIF_TM_EITHER
@ XWDS_SOC_EIF_TM_EITHER
Definition
eirq.h:43
XWDS_SOC_EIF_TM_LOW
@ XWDS_SOC_EIF_TM_LOW
Definition
eirq.h:45
XWDS_SOC_EIF_TM_RISING
@ XWDS_SOC_EIF_TM_RISING
Definition
eirq.h:41
XWDS_SOC_EIF_DMA
@ XWDS_SOC_EIF_DMA
Definition
eirq.h:50
XWDS_SOC_EIF_TM_FALLING
@ XWDS_SOC_EIF_TM_FALLING
Definition
eirq.h:42
XWDS_SOC_EIF_WKUP
@ XWDS_SOC_EIF_WKUP
Definition
eirq.h:49
XWDS_SOC_EIF_TM_MASK
@ XWDS_SOC_EIF_TM_MASK
Definition
eirq.h:47
XWDS_SOC_EIF_TM_HIGH
@ XWDS_SOC_EIF_TM_HIGH
Definition
eirq.h:46
xwds_eirq_f
void(* xwds_eirq_f)(struct xwds_soc *, xwid_t, xwds_eirq_arg_t)
外部中断函数
Definition
chip.h:143
xwds_eirq_req
xwer_t xwds_eirq_req(struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwid_t eiid, xwsq_t eiflag, xwds_eirq_f isr, xwds_eirq_arg_t arg)
XWDS API:申请外部中断
Definition
eirq.c:26
xwds_eirq_rls
xwer_t xwds_eirq_rls(struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwid_t eiid)
XWDS API:释放外部中断
Definition
eirq.c:80
xwds_soc_ei_flag_em
xwds_soc_ei_flag_em
外部中断标志
Definition
eirq.h:40
xwds_eirq_arg_t
void * xwds_eirq_arg_t
外部中断函数参数
Definition
chip.h:138
xwer_t
signed long xwer_t
Definition
type.h:554
xwid_t
unsigned long xwid_t
Definition
type.h:481
xwsq_t
unsigned long xwsq_t
Definition
type.h:445
XWBOP_BIT
#define XWBOP_BIT(n)
Definition
xwbop.h:27
chip.h
玄武设备栈:SOC
xwds_soc
SOC设备
Definition
chip.h:161
standard.h
玄武设备栈:顶级头文件
xwcd
ds
soc
eirq.h
制作者
1.9.7