Zephyr API Documentation
4.0.0
A Scalable Open Source RTOS
4.0.0
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
►
subsys
▼
zephyr
►
acpi
►
app_memory
►
arch
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
▼
dt-bindings
►
acpi
►
adc
►
battery
▼
clock
►
silabs
►
adi_max32_clock.h
►
ast10x0_clock.h
►
atmel_sam_pmc.h
►
esp32_clock.h
►
esp32c2_clock.h
►
esp32c3_clock.h
►
esp32c6_clock.h
►
esp32s2_clock.h
►
esp32s3_clock.h
►
gd32-clocks-common.h
►
gd32a50x-clocks.h
►
gd32e10x-clocks.h
►
gd32e50x-clocks.h
►
gd32f3x0-clocks.h
►
gd32f403-clocks.h
►
gd32f4xx-clocks.h
►
gd32l23x-clocks.h
►
gd32vf103-clocks.h
►
imx8ulp_clock.h
►
imx95_clock.h
►
imx_ccm.h
►
imx_ccm_rev2.h
►
intel_socfpga_clock.h
►
kinetis_mcg.h
►
kinetis_pcc.h
►
kinetis_scg.h
►
kinetis_sim.h
►
lpc11u6x_clock.h
►
mchp_xec_pcr.h
►
mcux_lpc_syscon_clock.h
►
npcx_clock.h
►
numaker_m2l31x_clock.h
►
numaker_m46x_clock.h
►
nxp_s32k146_clock.h
►
nxp_s32k344_clock.h
►
nxp_s32z2_clock.h
r7fa4m1xxxxxx-clock.h
►
r8a7795_cpg_mssr.h
►
r8a779f0_cpg_mssr.h
►
ra_clock.h
►
renesas-ra-cgc.h
►
renesas_cpg_mssr.h
►
rpi_pico_clock.h
►
scg_k4.h
►
stm32_clock.h
►
stm32_common_clocks.h
►
stm32c0_clock.h
►
stm32f0_clock.h
►
stm32f10x_clock.h
►
stm32f1_clock.h
►
stm32f3_clock.h
►
stm32f410_clock.h
►
stm32f427_clock.h
►
stm32f4_clock.h
►
stm32f7_clock.h
►
stm32g0_clock.h
►
stm32g4_clock.h
►
stm32h5_clock.h
►
stm32h7_clock.h
►
stm32h7rs_clock.h
►
stm32l0_clock.h
►
stm32l1_clock.h
►
stm32l4_clock.h
►
stm32u0_clock.h
►
stm32u5_clock.h
►
stm32wb0_clock.h
►
stm32wb_clock.h
►
stm32wba_clock.h
►
stm32wl_clock.h
►
dac
►
dai
►
display
►
dma
►
espi
►
ethernet
►
flash_controller
►
gnss
►
gpio
►
i2c
►
input
►
inputmux
►
interrupt-controller
►
ipc_service
►
led
►
lora
►
lvgl
►
memory-attr
►
memory-controller
►
mipi_dbi
►
mipi_dsi
►
misc
►
pcie
►
pinctrl
►
power
►
pwm
►
rdc
►
regulator
►
reserved-memory
►
reset
►
sensor
►
spi
►
timer
►
usb
►
usb-c
►
video
dt-util.h
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
posix
►
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
►
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
gd32e10x-clocks.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Teslabs Engineering S.L.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_GD32E10X_CLOCKS_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_GD32E10X_CLOCKS_H_
9
10
#include "
gd32-clocks-common.h
"
11
17
#define GD32_AHBEN_OFFSET 0x14U
18
#define GD32_APB1EN_OFFSET 0x1CU
19
#define GD32_APB2EN_OFFSET 0x18U
20
#define GD32_ADDAPB1EN_OFFSET 0xE4U
21
29
/* AHB peripherals */
30
#define GD32_CLOCK_DMA0 GD32_CLOCK_CONFIG(AHBEN, 0U)
31
#define GD32_CLOCK_DMA1 GD32_CLOCK_CONFIG(AHBEN, 1U)
32
#define GD32_CLOCK_SRAMSP GD32_CLOCK_CONFIG(AHBEN, 2U)
33
#define GD32_CLOCK_FMCSP GD32_CLOCK_CONFIG(AHBEN, 4U)
34
#define GD32_CLOCK_CRC GD32_CLOCK_CONFIG(AHBEN, 6U)
35
#define GD32_CLOCK_EXMC GD32_CLOCK_CONFIG(AHBEN, 8U)
36
#define GD32_CLOCK_USBFS GD32_CLOCK_CONFIG(AHBEN, 12U)
37
38
/* APB1 peripherals */
39
#define GD32_CLOCK_TIMER1 GD32_CLOCK_CONFIG(APB1EN, 0U)
40
#define GD32_CLOCK_TIMER2 GD32_CLOCK_CONFIG(APB1EN, 1U)
41
#define GD32_CLOCK_TIMER3 GD32_CLOCK_CONFIG(APB1EN, 2U)
42
#define GD32_CLOCK_TIMER4 GD32_CLOCK_CONFIG(APB1EN, 3U)
43
#define GD32_CLOCK_TIMER5 GD32_CLOCK_CONFIG(APB1EN, 4U)
44
#define GD32_CLOCK_TIMER6 GD32_CLOCK_CONFIG(APB1EN, 5U)
45
#define GD32_CLOCK_TIMER11 GD32_CLOCK_CONFIG(APB1EN, 6U)
46
#define GD32_CLOCK_TIMER12 GD32_CLOCK_CONFIG(APB1EN, 7U)
47
#define GD32_CLOCK_TIMER13 GD32_CLOCK_CONFIG(APB1EN, 8U)
48
#define GD32_CLOCK_WWDGT GD32_CLOCK_CONFIG(APB1EN, 11U)
49
#define GD32_CLOCK_SPI1 GD32_CLOCK_CONFIG(APB1EN, 14U)
50
#define GD32_CLOCK_SPI2 GD32_CLOCK_CONFIG(APB1EN, 15U)
51
#define GD32_CLOCK_USART1 GD32_CLOCK_CONFIG(APB1EN, 17U)
52
#define GD32_CLOCK_USART2 GD32_CLOCK_CONFIG(APB1EN, 18U)
53
#define GD32_CLOCK_UART3 GD32_CLOCK_CONFIG(APB1EN, 19U)
54
#define GD32_CLOCK_UART4 GD32_CLOCK_CONFIG(APB1EN, 20U)
55
#define GD32_CLOCK_I2C0 GD32_CLOCK_CONFIG(APB1EN, 21U)
56
#define GD32_CLOCK_I2C1 GD32_CLOCK_CONFIG(APB1EN, 22U)
57
#define GD32_CLOCK_BKPI GD32_CLOCK_CONFIG(APB1EN, 27U)
58
#define GD32_CLOCK_PMU GD32_CLOCK_CONFIG(APB1EN, 28U)
59
#define GD32_CLOCK_DAC GD32_CLOCK_CONFIG(APB1EN, 29U)
60
61
/* APB2 peripherals */
62
#define GD32_CLOCK_AFIO GD32_CLOCK_CONFIG(APB2EN, 0U)
63
#define GD32_CLOCK_GPIOA GD32_CLOCK_CONFIG(APB2EN, 2U)
64
#define GD32_CLOCK_GPIOB GD32_CLOCK_CONFIG(APB2EN, 3U)
65
#define GD32_CLOCK_GPIOC GD32_CLOCK_CONFIG(APB2EN, 4U)
66
#define GD32_CLOCK_GPIOD GD32_CLOCK_CONFIG(APB2EN, 5U)
67
#define GD32_CLOCK_GPIOE GD32_CLOCK_CONFIG(APB2EN, 6U)
68
#define GD32_CLOCK_ADC0 GD32_CLOCK_CONFIG(APB2EN, 9U)
69
#define GD32_CLOCK_ADC1 GD32_CLOCK_CONFIG(APB2EN, 10U)
70
#define GD32_CLOCK_TIMER0 GD32_CLOCK_CONFIG(APB2EN, 11U)
71
#define GD32_CLOCK_SPI0 GD32_CLOCK_CONFIG(APB2EN, 12U)
72
#define GD32_CLOCK_TIMER7 GD32_CLOCK_CONFIG(APB2EN, 13U)
73
#define GD32_CLOCK_USART0 GD32_CLOCK_CONFIG(APB2EN, 14U)
74
#define GD32_CLOCK_TIMER8 GD32_CLOCK_CONFIG(APB2EN, 19U)
75
#define GD32_CLOCK_TIMER9 GD32_CLOCK_CONFIG(APB2EN, 20U)
76
#define GD32_CLOCK_TIMER10 GD32_CLOCK_CONFIG(APB2EN, 21U)
77
78
/* APB1 additional peripherals */
79
#define GD32_CLOCK_CTC GD32_CLOCK_CONFIG(ADDAPB1EN, 27U)
80
83
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_GD32E10X_CLOCKS_H_ */
gd32-clocks-common.h
zephyr
dt-bindings
clock
gd32e10x-clocks.h
Generated on Sat Nov 16 2024 04:55:03 for Zephyr API Documentation by
1.12.0