Zephyr API Documentation
4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gd32f527.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 GigaDevice Semiconductor Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
11
12
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F527_H_
13
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F527_H_
14
15
#include "
gd32-common.h
"
16
21
22
#define GD32_AHB1RST_OFFSET 0x10U
23
#define GD32_AHB2RST_OFFSET 0x14U
24
#define GD32_APB1RST_OFFSET 0x20U
25
#define GD32_APB2RST_OFFSET 0x24U
26
28
33
34
/* AHB1 peripherals */
35
#define GD32_RESET_GPIOA GD32_RESET_CONFIG(AHB1RST, 0U)
36
#define GD32_RESET_GPIOB GD32_RESET_CONFIG(AHB1RST, 1U)
37
#define GD32_RESET_GPIOC GD32_RESET_CONFIG(AHB1RST, 2U)
38
#define GD32_RESET_GPIOD GD32_RESET_CONFIG(AHB1RST, 3U)
39
#define GD32_RESET_GPIOE GD32_RESET_CONFIG(AHB1RST, 4U)
40
#define GD32_RESET_GPIOF GD32_RESET_CONFIG(AHB1RST, 5U)
41
#define GD32_RESET_GPIOG GD32_RESET_CONFIG(AHB1RST, 6U)
42
#define GD32_RESET_GPIOH GD32_RESET_CONFIG(AHB1RST, 7U)
43
#define GD32_RESET_GPIOI GD32_RESET_CONFIG(AHB1RST, 8U)
44
#define GD32_RESET_CRC GD32_RESET_CONFIG(AHB1RST, 12U)
45
#define GD32_RESET_DMA0 GD32_RESET_CONFIG(AHB1RST, 21U)
46
#define GD32_RESET_DMA1 GD32_RESET_CONFIG(AHB1RST, 22U)
47
#define GD32_RESET_IPA GD32_RESET_CONFIG(AHB1RST, 23U)
48
#define GD32_RESET_ENET GD32_RESET_CONFIG(AHB1RST, 25U)
49
#define GD32_RESET_USBHS GD32_RESET_CONFIG(AHB1RST, 29U)
50
51
/* AHB2 peripherals */
52
#define GD32_RESET_DCI GD32_RESET_CONFIG(AHB2RST, 0U)
53
#define GD32_RESET_PKCAU GD32_RESET_CONFIG(AHB2RST, 3U)
54
#define GD32_RESET_CAU GD32_RESET_CONFIG(AHB2RST, 4U)
55
#define GD32_RESET_HAU GD32_RESET_CONFIG(AHB2RST, 5U)
56
#define GD32_RESET_TRNG GD32_RESET_CONFIG(AHB2RST, 6U)
57
#define GD32_RESET_USBFS GD32_RESET_CONFIG(AHB2RST, 7U)
58
59
/* APB1 peripherals */
60
#define GD32_RESET_TIMER1 GD32_RESET_CONFIG(APB1RST, 0U)
61
#define GD32_RESET_TIMER2 GD32_RESET_CONFIG(APB1RST, 1U)
62
#define GD32_RESET_TIMER3 GD32_RESET_CONFIG(APB1RST, 2U)
63
#define GD32_RESET_TIMER4 GD32_RESET_CONFIG(APB1RST, 3U)
64
#define GD32_RESET_TIMER5 GD32_RESET_CONFIG(APB1RST, 4U)
65
#define GD32_RESET_TIMER6 GD32_RESET_CONFIG(APB1RST, 5U)
66
#define GD32_RESET_TIMER11 GD32_RESET_CONFIG(APB1RST, 6U)
67
#define GD32_RESET_TIMER12 GD32_RESET_CONFIG(APB1RST, 7U)
68
#define GD32_RESET_TIMER13 GD32_RESET_CONFIG(APB1RST, 8U)
69
#define GD32_RESET_I2C3 GD32_RESET_CONFIG(APB1RST, 10U)
70
#define GD32_RESET_WWDGT GD32_RESET_CONFIG(APB1RST, 11U)
71
#define GD32_RESET_I2C4 GD32_RESET_CONFIG(APB1RST, 12U)
72
#define GD32_RESET_I2C5 GD32_RESET_CONFIG(APB1RST, 13U)
73
#define GD32_RESET_SPI1 GD32_RESET_CONFIG(APB1RST, 14U)
74
#define GD32_RESET_SPI2 GD32_RESET_CONFIG(APB1RST, 15U)
75
#define GD32_RESET_USART1 GD32_RESET_CONFIG(APB1RST, 17U)
76
#define GD32_RESET_USART2 GD32_RESET_CONFIG(APB1RST, 18U)
77
#define GD32_RESET_UART3 GD32_RESET_CONFIG(APB1RST, 19U)
78
#define GD32_RESET_UART4 GD32_RESET_CONFIG(APB1RST, 20U)
79
#define GD32_RESET_I2C0 GD32_RESET_CONFIG(APB1RST, 21U)
80
#define GD32_RESET_I2C1 GD32_RESET_CONFIG(APB1RST, 22U)
81
#define GD32_RESET_I2C2 GD32_RESET_CONFIG(APB1RST, 23U)
82
#define GD32_RESET_CAN0 GD32_RESET_CONFIG(APB1RST, 25U)
83
#define GD32_RESET_CAN1 GD32_RESET_CONFIG(APB1RST, 26U)
84
#define GD32_RESET_PMU GD32_RESET_CONFIG(APB1RST, 28U)
85
#define GD32_RESET_DAC GD32_RESET_CONFIG(APB1RST, 29U)
86
#define GD32_RESET_UART6 GD32_RESET_CONFIG(APB1RST, 30U)
87
#define GD32_RESET_UART7 GD32_RESET_CONFIG(APB1RST, 31U)
88
89
/* APB2 peripherals */
90
#define GD32_RESET_TIMER0 GD32_RESET_CONFIG(APB2RST, 0U)
91
#define GD32_RESET_TIMER7 GD32_RESET_CONFIG(APB2RST, 1U)
92
#define GD32_RESET_USART0 GD32_RESET_CONFIG(APB2RST, 4U)
93
#define GD32_RESET_USART5 GD32_RESET_CONFIG(APB2RST, 5U)
94
#define GD32_RESET_ADC GD32_RESET_CONFIG(APB2RST, 8U)
95
#define GD32_RESET_SDIO GD32_RESET_CONFIG(APB2RST, 11U)
96
#define GD32_RESET_SPI0 GD32_RESET_CONFIG(APB2RST, 12U)
97
#define GD32_RESET_SPI3 GD32_RESET_CONFIG(APB2RST, 13U)
98
#define GD32_RESET_SYSCFG GD32_RESET_CONFIG(APB2RST, 14U)
99
#define GD32_RESET_TIMER8 GD32_RESET_CONFIG(APB2RST, 16U)
100
#define GD32_RESET_TIMER9 GD32_RESET_CONFIG(APB2RST, 17U)
101
#define GD32_RESET_TIMER10 GD32_RESET_CONFIG(APB2RST, 18U)
102
#define GD32_RESET_SPI4 GD32_RESET_CONFIG(APB2RST, 20U)
103
#define GD32_RESET_SPI5 GD32_RESET_CONFIG(APB2RST, 21U)
104
#define GD32_RESET_SAI0 GD32_RESET_CONFIG(APB2RST, 22U)
105
107
108
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F527_H_ */
gd32-common.h
GD32 reset controller devicetree helper macros.
zephyr
dt-bindings
reset
gd32f527.h
Generated on
for Zephyr API Documentation by
1.16.1