Zephyr API Documentation
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gd32a50x.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 YuLong Yao <feilongphone@gmail.com>
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32A50X_H_
14
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32A50X_H_
15
16
#include "
gd32-common.h
"
17
29
31
36
37
#define GD32_AHBRST_OFFSET 0x28U
38
#define GD32_APB1RST_OFFSET 0x10U
39
#define GD32_APB2RST_OFFSET 0x0CU
40
42
47
48
49
/* AHB peripherals */
50
#define GD32_RESET_DMA0 GD32_RESET_CONFIG(AHBRST, 0U)
51
#define GD32_RESET_DMA1 GD32_RESET_CONFIG(AHBRST, 1U)
52
#define GD32_RESET_SRAMSP GD32_RESET_CONFIG(AHBRST, 2U)
53
#define GD32_RESET_DMAMUX GD32_RESET_CONFIG(AHBRST, 3U)
54
#define GD32_RESET_FMCSP GD32_RESET_CONFIG(AHBRST, 4U)
55
#define GD32_RESET_CRC GD32_RESET_CONFIG(AHBRST, 6U)
56
#define GD32_RESET_MFCOM GD32_RESET_CONFIG(AHBRST, 14U)
57
#define GD32_RESET_GPIOA GD32_RESET_CONFIG(AHBRST, 17U)
58
#define GD32_RESET_GPIOB GD32_RESET_CONFIG(AHBRST, 18U)
59
#define GD32_RESET_GPIOC GD32_RESET_CONFIG(AHBRST, 19U)
60
#define GD32_RESET_GPIOD GD32_RESET_CONFIG(AHBRST, 20U)
61
#define GD32_RESET_GPIOE GD32_RESET_CONFIG(AHBRST, 21U)
62
#define GD32_RESET_GPIOF GD32_RESET_CONFIG(AHBRST, 22U)
63
64
/* APB1 peripherals */
65
#define GD32_RESET_TIMER1 GD32_RESET_CONFIG(APB1RST, 0U)
66
#define GD32_RESET_TIMER5 GD32_RESET_CONFIG(APB1RST, 4U)
67
#define GD32_RESET_TIMER6 GD32_RESET_CONFIG(APB1RST, 5U)
68
#define GD32_RESET_WWDGT GD32_RESET_CONFIG(APB1RST, 11U)
69
#define GD32_RESET_SPI1 GD32_RESET_CONFIG(APB1RST, 14U)
70
#define GD32_RESET_USART1 GD32_RESET_CONFIG(APB1RST, 17U)
71
#define GD32_RESET_USART2 GD32_RESET_CONFIG(APB1RST, 18U)
72
#define GD32_RESET_I2C0 GD32_RESET_CONFIG(APB1RST, 21U)
73
#define GD32_RESET_I2C1 GD32_RESET_CONFIG(APB1RST, 22U)
74
#define GD32_RESET_BKP GD32_RESET_CONFIG(APB1RST, 26U)
75
#define GD32_RESET_PMU GD32_RESET_CONFIG(APB1RST, 28U)
76
#define GD32_RESET_DAC GD32_RESET_CONFIG(APB1RST, 29U)
77
78
/* APB2 peripherals */
79
#define GD32_RESET_SYSCFG GD32_RESET_CONFIG(APB2RST, 0U)
80
#define GD32_RESET_CMP GD32_RESET_CONFIG(APB2RST, 1U)
81
#define GD32_RESET_ADC0 GD32_RESET_CONFIG(APB2RST, 9U)
82
#define GD32_RESET_ADC1 GD32_RESET_CONFIG(APB2RST, 10U)
83
#define GD32_RESET_TIMER0 GD32_RESET_CONFIG(APB2RST, 11U)
84
#define GD32_RESET_SPI0 GD32_RESET_CONFIG(APB2RST, 12U)
85
#define GD32_RESET_TIMER7 GD32_RESET_CONFIG(APB2RST, 13U)
86
#define GD32_RESET_USART0 GD32_RESET_CONFIG(APB2RST, 14U)
87
#define GD32_RESET_TIMER19 GD32_RESET_CONFIG(APB2RST, 20U)
88
#define GD32_RESET_TIMER20 GD32_RESET_CONFIG(APB2RST, 21U)
89
#define GD32_RESET_TRIGSEL GD32_RESET_CONFIG(APB2RST, 29U)
90
#define GD32_RESET_CAN0 GD32_RESET_CONFIG(APB2RST, 30U)
91
#define GD32_RESET_CAN1 GD32_RESET_CONFIG(APB2RST, 31U)
92
94
96
98
99
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32A50X_H_ */
gd32-common.h
GD32 reset controller devicetree helper macros.
zephyr
dt-bindings
reset
gd32a50x.h
Generated on
for Zephyr API Documentation by
1.16.1