Zephyr API Documentation
4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
reset.h
Go to the documentation of this file.
1
6
/*
7
* Copyright (c) 2022, Andrei-Edward Popa
8
*
9
* SPDX-License-Identifier: Apache-2.0
10
*/
11
12
#ifndef ZEPHYR_INCLUDE_DEVICETREE_RESET_H_
13
#define ZEPHYR_INCLUDE_DEVICETREE_RESET_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
50
#define DT_RESET_CTLR_BY_IDX(node_id, idx) \
51
DT_PHANDLE_BY_IDX(node_id, resets, idx)
52
60
#define DT_RESET_CTLR(node_id) \
61
DT_RESET_CTLR_BY_IDX(node_id, 0)
62
89
#define DT_RESET_CTLR_BY_NAME(node_id, name) \
90
DT_PHANDLE_BY_NAME(node_id, resets, name)
91
121
#define DT_RESET_CELL_BY_IDX(node_id, idx, cell) \
122
DT_PHA_BY_IDX(node_id, resets, idx, cell)
123
155
#define DT_RESET_CELL_BY_NAME(node_id, name, cell) \
156
DT_PHA_BY_NAME(node_id, resets, name, cell)
157
165
#define DT_RESET_CELL(node_id, cell) \
166
DT_RESET_CELL_BY_IDX(node_id, 0, cell)
167
178
#define DT_INST_RESET_CTLR_BY_IDX(inst, idx) \
179
DT_RESET_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
180
188
#define DT_INST_RESET_CTLR(inst) \
189
DT_INST_RESET_CTLR_BY_IDX(inst, 0)
190
202
#define DT_INST_RESET_CTLR_BY_NAME(inst, name) \
203
DT_RESET_CTLR_BY_NAME(DT_DRV_INST(inst), name)
204
214
#define DT_INST_RESET_CELL_BY_IDX(inst, idx, cell) \
215
DT_RESET_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
216
226
#define DT_INST_RESET_CELL_BY_NAME(inst, name, cell) \
227
DT_RESET_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
228
235
#define DT_INST_RESET_CELL(inst, cell) \
236
DT_INST_RESET_CELL_BY_IDX(inst, 0, cell)
237
269
#define DT_RESET_ID_BY_IDX(node_id, idx) \
270
DT_PHA_BY_IDX(node_id, resets, idx, id)
271
278
#define DT_RESET_ID(node_id) \
279
DT_RESET_ID_BY_IDX(node_id, 0)
280
289
#define DT_INST_RESET_ID_BY_IDX(inst, idx) \
290
DT_RESET_ID_BY_IDX(DT_DRV_INST(inst), idx)
291
298
#define DT_INST_RESET_ID(inst) \
299
DT_INST_RESET_ID_BY_IDX(inst, 0)
300
305
#ifdef __cplusplus
306
}
307
#endif
308
309
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_RESET_H_ */
zephyr
devicetree
reset.h
Generated on Fri Nov 8 2024 18:02:19 for Zephyr API Documentation by
1.12.0