Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
clocks.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_CLOCKS_H_
13
#define ZEPHYR_INCLUDE_DEVICETREE_CLOCKS_H_
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
52
#define DT_CLOCKS_HAS_IDX(node_id, idx) \
53
DT_PROP_HAS_IDX(node_id, clocks, idx)
54
83
#define DT_CLOCKS_HAS_NAME(node_id, name) \
84
DT_PROP_HAS_NAME(node_id, clocks, name)
85
107
#define DT_NUM_CLOCKS(node_id) \
108
DT_PROP_LEN(node_id, clocks)
109
110
136
#define DT_CLOCKS_CTLR_BY_IDX(node_id, idx) \
137
DT_PHANDLE_BY_IDX(node_id, clocks, idx)
138
146
#define DT_CLOCKS_CTLR(node_id) DT_CLOCKS_CTLR_BY_IDX(node_id, 0)
147
173
#define DT_CLOCKS_CTLR_BY_NAME(node_id, name) \
174
DT_PHANDLE_BY_NAME(node_id, clocks, name)
175
207
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell) \
208
DT_PHA_BY_IDX(node_id, clocks, idx, cell)
209
243
#define DT_CLOCKS_CELL_BY_NAME(node_id, name, cell) \
244
DT_PHA_BY_NAME(node_id, clocks, name, cell)
245
253
#define DT_CLOCKS_CELL(node_id, cell) DT_CLOCKS_CELL_BY_IDX(node_id, 0, cell)
254
261
#define DT_INST_CLOCKS_HAS_IDX(inst, idx) \
262
DT_CLOCKS_HAS_IDX(DT_DRV_INST(inst), idx)
263
270
#define DT_INST_CLOCKS_HAS_NAME(inst, name) \
271
DT_CLOCKS_HAS_NAME(DT_DRV_INST(inst), name)
272
278
#define DT_INST_NUM_CLOCKS(inst) \
279
DT_NUM_CLOCKS(DT_DRV_INST(inst))
280
291
#define DT_INST_CLOCKS_CTLR_BY_IDX(inst, idx) \
292
DT_CLOCKS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
293
301
#define DT_INST_CLOCKS_CTLR(inst) DT_INST_CLOCKS_CTLR_BY_IDX(inst, 0)
302
314
#define DT_INST_CLOCKS_CTLR_BY_NAME(inst, name) \
315
DT_CLOCKS_CTLR_BY_NAME(DT_DRV_INST(inst), name)
316
326
#define DT_INST_CLOCKS_CELL_BY_IDX(inst, idx, cell) \
327
DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), idx, cell)
328
338
#define DT_INST_CLOCKS_CELL_BY_NAME(inst, name, cell) \
339
DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, cell)
340
347
#define DT_INST_CLOCKS_CELL(inst, cell) \
348
DT_INST_CLOCKS_CELL_BY_IDX(inst, 0, cell)
349
354
#ifdef __cplusplus
355
}
356
#endif
357
358
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_CLOCKS_H_ */
zephyr
devicetree
clocks.h
Generated on Thu Nov 21 2024 18:02:23 for Zephyr API Documentation by
1.12.0