Zephyr API Documentation
4.2.0-rc3
A Scalable Open Source RTOS
4.2.0-rc3
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Zephyr API Documentation
Introduction
Deprecated List
Topics
Data Structures
Files
File List
doc
kernel
lib
modules
subsys
zephyr
acpi
app_memory
arch
audio
bluetooth
canbus
console
crypto
data
debug
devicetree
can.h
clocks.h
display.h
dma.h
fixed-partitions.h
gpio.h
interrupt_controller.h
io-channels.h
mbox.h
ordinals.h
pinctrl.h
port-endpoint.h
pwms.h
reset.h
spi.h
dfu
display
drivers
dsp
dt-bindings
fs
input
internal
ipc
kernel
linker
llext
logging
lorawan
math
mem_mgmt
mgmt
misc
modbus
modem
multi_heap
net
platform
pm
pmci
portability
posix
psa
random
retention
rtio
sd
sensing
settings
shell
sip_svc
stats
storage
sys
task_wdt
timing
toolchain
tracing
usb
usb_c
xen
zbus
zvfs
bindesc.h
cache.h
device.h
devicetree.h
fatal.h
fatal_types.h
init.h
irq.h
irq_multilevel.h
irq_nextlevel.h
irq_offload.h
kernel.h
kernel_includes.h
kernel_structs.h
kernel_version.h
net_buf.h
service.h
shared_irq.h
smf.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall.h
toolchain.h
types.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
clocks.h
Go to the documentation of this file.
1
5
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
24
52
#define DT_CLOCKS_HAS_IDX(node_id, idx) \
53
DT_PROP_HAS_IDX(node_id, clocks, idx)
52
#define DT_CLOCKS_HAS_IDX(node_id, idx) \
…
54
83
#define DT_CLOCKS_HAS_NAME(node_id, name) \
84
DT_PROP_HAS_NAME(node_id, clocks, name)
83
#define DT_CLOCKS_HAS_NAME(node_id, name) \
…
85
107
#define DT_NUM_CLOCKS(node_id) \
108
DT_PROP_LEN(node_id, clocks)
107
#define DT_NUM_CLOCKS(node_id) \
…
109
110
136
#define DT_CLOCKS_CTLR_BY_IDX(node_id, idx) \
137
DT_PHANDLE_BY_IDX(node_id, clocks, idx)
136
#define DT_CLOCKS_CTLR_BY_IDX(node_id, 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)
173
#define DT_CLOCKS_CTLR_BY_NAME(node_id, name) \
…
175
207
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell) \
208
DT_PHA_BY_IDX(node_id, clocks, idx, cell)
207
#define DT_CLOCKS_CELL_BY_IDX(node_id, idx, cell) \
…
209
243
#define DT_CLOCKS_CELL_BY_NAME(node_id, name, cell) \
244
DT_PHA_BY_NAME(node_id, clocks, name, cell)
243
#define DT_CLOCKS_CELL_BY_NAME(node_id, 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)
261
#define DT_INST_CLOCKS_HAS_IDX(inst, idx) \
…
263
270
#define DT_INST_CLOCKS_HAS_NAME(inst, name) \
271
DT_CLOCKS_HAS_NAME(DT_DRV_INST(inst), name)
270
#define DT_INST_CLOCKS_HAS_NAME(inst, name) \
…
272
278
#define DT_INST_NUM_CLOCKS(inst) \
279
DT_NUM_CLOCKS(DT_DRV_INST(inst))
278
#define DT_INST_NUM_CLOCKS(inst) \
…
280
291
#define DT_INST_CLOCKS_CTLR_BY_IDX(inst, idx) \
292
DT_CLOCKS_CTLR_BY_IDX(DT_DRV_INST(inst), idx)
291
#define DT_INST_CLOCKS_CTLR_BY_IDX(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)
314
#define DT_INST_CLOCKS_CTLR_BY_NAME(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)
326
#define DT_INST_CLOCKS_CELL_BY_IDX(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)
338
#define DT_INST_CLOCKS_CELL_BY_NAME(inst, name, cell) \
…
340
347
#define DT_INST_CLOCKS_CELL(inst, cell) \
348
DT_INST_CLOCKS_CELL_BY_IDX(inst, 0, cell)
347
#define DT_INST_CLOCKS_CELL(inst, cell) \
…
349
353
354
#ifdef __cplusplus
355
}
356
#endif
357
358
#endif
/* ZEPHYR_INCLUDE_DEVICETREE_CLOCKS_H_ */
zephyr
devicetree
clocks.h
Generated on
for Zephyr API Documentation by
1.14.0