Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
reset.h
Go to the documentation of this file.
1
5
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
16extern "C" {
17#endif
18
25
51#define DT_RESET_CTLR_BY_IDX(node_id, idx) \
52 DT_PHANDLE_BY_IDX(node_id, resets, idx)
53
61#define DT_RESET_CTLR(node_id) \
62 DT_RESET_CTLR_BY_IDX(node_id, 0)
63
90#define DT_RESET_CTLR_BY_NAME(node_id, name) \
91 DT_PHANDLE_BY_NAME(node_id, resets, name)
92
122#define DT_RESET_CELL_BY_IDX(node_id, idx, cell) \
123 DT_PHA_BY_IDX(node_id, resets, idx, cell)
124
156#define DT_RESET_CELL_BY_NAME(node_id, name, cell) \
157 DT_PHA_BY_NAME(node_id, resets, name, cell)
158
166#define DT_RESET_CELL(node_id, cell) \
167 DT_RESET_CELL_BY_IDX(node_id, 0, cell)
168
179#define DT_INST_RESET_CTLR_BY_IDX(inst, idx) \
180 DT_RESET_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
181
189#define DT_INST_RESET_CTLR(inst) \
190 DT_INST_RESET_CTLR_BY_IDX(inst, 0)
191
203#define DT_INST_RESET_CTLR_BY_NAME(inst, name) \
204 DT_RESET_CTLR_BY_NAME(DT_DRV_INST(inst), name)
205
215#define DT_INST_RESET_CELL_BY_IDX(inst, idx, cell) \
216 DT_RESET_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
217
227#define DT_INST_RESET_CELL_BY_NAME(inst, name, cell) \
228 DT_RESET_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
229
236#define DT_INST_RESET_CELL(inst, cell) \
237 DT_INST_RESET_CELL_BY_IDX(inst, 0, cell)
238
270#define DT_RESET_ID_BY_IDX(node_id, idx) \
271 DT_PHA_BY_IDX(node_id, resets, idx, id)
272
279#define DT_RESET_ID(node_id) \
280 DT_RESET_ID_BY_IDX(node_id, 0)
281
290#define DT_INST_RESET_ID_BY_IDX(inst, idx) \
291 DT_RESET_ID_BY_IDX(DT_DRV_INST(inst), idx)
292
299#define DT_INST_RESET_ID(inst) \
300 DT_INST_RESET_ID_BY_IDX(inst, 0)
301
305
306#ifdef __cplusplus
307}
308#endif
309
310#endif /* ZEPHYR_INCLUDE_DEVICETREE_RESET_H_ */