XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
standard.h
浏览该文件的文档.
1
21#ifndef __xwcd_ds_standard_h__
22#define __xwcd_ds_standard_h__
23
24#include <xwos/standard.h>
25
31#define __xwds_code __xwcd_code
32#define __xwds_isr __xwcd_isr
33#define __xwds_api __xwcd_api
34#define __xwds_inline __xwcd_inline
35#define __xwds_inline_api __xwcd_inline_api
36#define __xwds_vop __xwcd_code
37#define __xwds_data __xwcd_data
38#define __xwds_rodata __xwcd_rodata
39
40#define xwds_cast(type, dev) ((type)(dev))
41
42#define XWDS_BUG() XWOS_BUG()
43#define XWDS_BUG_ON(x) XWOS_BUG_ON(x)
44
45#if (defined(XWCDCFG_CHECK_PARAMETERS) && (1 == XWCDCFG_CHECK_PARAMETERS))
46# define XWDS_VALIDATE(exp, errstr, ...) \
47 if (__xwcc_unlikely(!(exp))) { \
48 return __VA_ARGS__; \
49 }
50#else
51# define XWDS_VALIDATE(exp, errstr, ...)
52#endif
53
54#define XWDS_LOG_TAG "xwds"
55
60 void * base;
62 const char * description;
63};
64
71 const void * cfg;
72 const char * description;
73};
74
75struct xwds_soc;
76
81 struct xwds_soc * soc;
83 const char * description;
84};
85
90 struct xwds_soc * soc;
92 const char * description;
93};
94
99 struct xwds_soc * soc;
102 const char * description;
103};
104
109 struct xwds_soc * soc;
111 void * xwccfg;
112 const char * description;
113};
114
115struct xwds_iochip;
116
124 const char * description;
125};
126
145};
146
151#endif /* xwcd/ds/standard.h */
unsigned long xwid_t
Definition type.h:481
signed int xwirq_t
Definition type.h:517
unsigned long xwsz_t
Definition type.h:339
unsigned long xwsq_t
Definition type.h:445
void(* xwisr_f)(void)
Definition type.h:606
IO扩展芯片
Definition chip.h:95
设备栈时钟资源
Definition standard.h:80
struct xwds_soc * soc
Definition standard.h:81
const char * description
Definition standard.h:83
设备栈DMA资源
Definition standard.h:108
struct xwds_soc * soc
Definition standard.h:109
const char * description
Definition standard.h:112
设备栈GPIO资源
Definition standard.h:120
const char * description
Definition standard.h:124
struct xwds_iochip * iochip
Definition standard.h:121
设备栈GPIO资源
Definition standard.h:98
const char * description
Definition standard.h:102
struct xwds_soc * soc
Definition standard.h:99
设备栈中断钟资源
Definition standard.h:68
const void * cfg
Definition standard.h:71
const char * description
Definition standard.h:72
设备栈电源资源
Definition standard.h:89
const char * description
Definition standard.h:92
struct xwds_soc * soc
Definition standard.h:90
设备栈寄存器资源
Definition standard.h:59
const char * description
Definition standard.h:62
设备栈资源
Definition standard.h:130
xwsz_t irqrsc_num
Definition standard.h:132
xwsz_t clkrsc_num
Definition standard.h:138
xwsz_t dmarsc_num
Definition standard.h:142
xwsz_t extgpiorsc_num
Definition standard.h:144
xwsz_t gpiorsc_num
Definition standard.h:140
const struct xwds_resource_reg * regrsc_array
Definition standard.h:133
const struct xwds_resource_gpio * gpiorsc_array
Definition standard.h:139
const struct xwds_resource_extgpio * extgpiorsc_array
Definition standard.h:143
xwsz_t regrsc_num
Definition standard.h:134
const struct xwds_resource_pwr * pwrrsc_array
Definition standard.h:135
xwsz_t pwrrsc_num
Definition standard.h:136
const struct xwds_resource_clk * clkrsc_array
Definition standard.h:137
const struct xwds_resource_dma * dmarsc_array
Definition standard.h:141
const struct xwds_resource_irq * irqrsc_array
Definition standard.h:131
SOC设备
Definition chip.h:161
XWOS的标准头文件