Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
io-channels.h
Go to the documentation of this file.
1
6
/*
7
* Copyright (c) 2020, Linaro Ltd.
8
*
9
* SPDX-License-Identifier: Apache-2.0
10
*/
11
12
#ifndef ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_
13
#define ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
55
#define DT_IO_CHANNELS_LABEL_BY_IDX(node_id, idx) \
56
__DEPRECATED_MACRO \
57
DT_PROP_BY_PHANDLE_IDX(node_id, io_channels, idx, label)
58
91
#define DT_IO_CHANNELS_LABEL_BY_NAME(node_id, name) \
92
__DEPRECATED_MACRO \
93
DT_PROP(DT_PHANDLE_BY_NAME(node_id, io_channels, name), label)
94
101
#define DT_IO_CHANNELS_LABEL(node_id) \
102
__DEPRECATED_MACRO DT_IO_CHANNELS_LABEL_BY_IDX(node_id, 0)
103
129
#define DT_IO_CHANNELS_CTLR_BY_IDX(node_id, idx) \
130
DT_PHANDLE_BY_IDX(node_id, io_channels, idx)
131
158
#define DT_IO_CHANNELS_CTLR_BY_NAME(node_id, name) \
159
DT_PHANDLE_BY_NAME(node_id, io_channels, name)
160
168
#define DT_IO_CHANNELS_CTLR(node_id) DT_IO_CHANNELS_CTLR_BY_IDX(node_id, 0)
169
178
#define DT_INST_IO_CHANNELS_LABEL_BY_IDX(inst, idx) \
179
__DEPRECATED_MACRO \
180
DT_IO_CHANNELS_LABEL_BY_IDX(DT_DRV_INST(inst), idx)
181
191
#define DT_INST_IO_CHANNELS_LABEL_BY_NAME(inst, name) \
192
__DEPRECATED_MACRO \
193
DT_IO_CHANNELS_LABEL_BY_NAME(DT_DRV_INST(inst), name)
194
200
#define DT_INST_IO_CHANNELS_LABEL(inst) \
201
__DEPRECATED_MACRO DT_INST_IO_CHANNELS_LABEL_BY_IDX(inst, 0)
202
212
#define DT_INST_IO_CHANNELS_CTLR_BY_IDX(inst, idx) \
213
DT_IO_CHANNELS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
214
224
#define DT_INST_IO_CHANNELS_CTLR_BY_NAME(inst, name) \
225
DT_IO_CHANNELS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
226
234
#define DT_INST_IO_CHANNELS_CTLR(inst) DT_INST_IO_CHANNELS_CTLR_BY_IDX(inst, 0)
235
273
#define DT_IO_CHANNELS_INPUT_BY_IDX(node_id, idx) \
274
DT_PHA_BY_IDX(node_id, io_channels, idx, input)
275
315
#define DT_IO_CHANNELS_INPUT_BY_NAME(node_id, name) \
316
DT_PHA_BY_NAME(node_id, io_channels, name, input)
323
#define DT_IO_CHANNELS_INPUT(node_id) DT_IO_CHANNELS_INPUT_BY_IDX(node_id, 0)
324
333
#define DT_INST_IO_CHANNELS_INPUT_BY_IDX(inst, idx) \
334
DT_IO_CHANNELS_INPUT_BY_IDX(DT_DRV_INST(inst), idx)
335
345
#define DT_INST_IO_CHANNELS_INPUT_BY_NAME(inst, name) \
346
DT_IO_CHANNELS_INPUT_BY_NAME(DT_DRV_INST(inst), name)
347
353
#define DT_INST_IO_CHANNELS_INPUT(inst) DT_INST_IO_CHANNELS_INPUT_BY_IDX(inst, 0)
354
359
#ifdef __cplusplus
360
}
361
#endif
362
363
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_IO_CHANNELS_H_ */
include
devicetree
io-channels.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4