Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gd32c2x1.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_GD32C2X1_H_
13
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32C2X1_H_
14
15
#include "
gd32-common.h
"
16
21
22
#define GD32_AHB1RST_OFFSET 0x10U
23
#define GD32_AHB2RST_OFFSET 0x14U
24
#define GD32_APBRST_OFFSET 0x24U
25
27
32
33
/* AHB1 peripherals */
34
#define GD32_RESET_CRC GD32_RESET_CONFIG(AHB1RST, 12U)
35
#define GD32_RESET_DMA GD32_RESET_CONFIG(AHB1RST, 21U)
36
37
/* AHB2 peripherals */
38
#define GD32_RESET_GPIOA GD32_RESET_CONFIG(AHB2RST, 17U)
39
#define GD32_RESET_GPIOB GD32_RESET_CONFIG(AHB2RST, 18U)
40
#define GD32_RESET_GPIOC GD32_RESET_CONFIG(AHB2RST, 19U)
41
#define GD32_RESET_GPIOD GD32_RESET_CONFIG(AHB2RST, 20U)
42
#define GD32_RESET_GPIOF GD32_RESET_CONFIG(AHB2RST, 22U)
43
44
/* APB peripherals */
45
#define GD32_RESET_SYSCFG GD32_RESET_CONFIG(APBRST, 0U)
46
#define GD32_RESET_CMP GD32_RESET_CONFIG(APBRST, 1U)
47
#define GD32_RESET_WWDGT GD32_RESET_CONFIG(APBRST, 8U)
48
#define GD32_RESET_ADC GD32_RESET_CONFIG(APBRST, 9U)
49
#define GD32_RESET_TIMER0 GD32_RESET_CONFIG(APBRST, 10U)
50
#define GD32_RESET_TIMER2 GD32_RESET_CONFIG(APBRST, 11U)
51
#define GD32_RESET_SPI0 GD32_RESET_CONFIG(APBRST, 12U)
52
#define GD32_RESET_SPI1 GD32_RESET_CONFIG(APBRST, 13U)
53
#define GD32_RESET_USART0 GD32_RESET_CONFIG(APBRST, 14U)
54
#define GD32_RESET_USART1 GD32_RESET_CONFIG(APBRST, 15U)
55
#define GD32_RESET_TIMER13 GD32_RESET_CONFIG(APBRST, 16U)
56
#define GD32_RESET_TIMER15 GD32_RESET_CONFIG(APBRST, 17U)
57
#define GD32_RESET_TIMER16 GD32_RESET_CONFIG(APBRST, 18U)
58
#define GD32_RESET_USART2 GD32_RESET_CONFIG(APBRST, 19U)
59
#define GD32_RESET_I2C0 GD32_RESET_CONFIG(APBRST, 21U)
60
#define GD32_RESET_I2C1 GD32_RESET_CONFIG(APBRST, 22U)
61
#define GD32_RESET_PMU GD32_RESET_CONFIG(APBRST, 28U)
62
64
65
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32C2X1_H_ */
gd32-common.h
GD32 reset controller devicetree helper macros.
include
zephyr
dt-bindings
reset
gd32c2x1.h
Generated on
for Zephyr Project API by
1.16.1