Zephyr API Documentation
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gd32f3x0.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
12
13
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F3X0_H_
14
#define ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F3X0_H_
15
16
#include "
gd32-common.h
"
17
29
31
36
37
#define GD32_APB2RST_OFFSET 0x0CU
38
#define GD32_APB1RST_OFFSET 0x10U
39
#define GD32_AHBRST_OFFSET 0x28U
40
#define GD32_ADDAPB1RST_OFFSET 0xFCU
41
43
48
49
/* APB2 peripherals */
50
#define GD32_RESET_CFGCMP GD32_RESET_CONFIG(APB2RST, 0U)
51
#define GD32_RESET_ADC GD32_RESET_CONFIG(APB2RST, 9U)
52
#define GD32_RESET_TIMER0 GD32_RESET_CONFIG(APB2RST, 11U)
53
#define GD32_RESET_SPI0 GD32_RESET_CONFIG(APB2RST, 12U)
54
#define GD32_RESET_USART0 GD32_RESET_CONFIG(APB2RST, 14U)
55
#define GD32_RESET_TIMER14 GD32_RESET_CONFIG(APB2RST, 16U)
56
#define GD32_RESET_TIMER15 GD32_RESET_CONFIG(APB2RST, 17U)
57
#define GD32_RESET_TIMER16 GD32_RESET_CONFIG(APB2RST, 18U)
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_TIMER5 GD32_RESET_CONFIG(APB1RST, 4U)
63
#define GD32_RESET_TIMER13 GD32_RESET_CONFIG(APB1RST, 8U)
64
#define GD32_RESET_WWDGT GD32_RESET_CONFIG(APB1RST, 11U)
65
#define GD32_RESET_SPI1 GD32_RESET_CONFIG(APB1RST, 14U)
66
#define GD32_RESET_USART1 GD32_RESET_CONFIG(APB1RST, 17U)
67
#define GD32_RESET_PMU GD32_RESET_CONFIG(APB1RST, 28U)
68
#define GD32_RESET_DAC GD32_RESET_CONFIG(APB1RST, 29U)
69
#define GD32_RESET_CEC GD32_RESET_CONFIG(APB1RST, 30U)
70
71
/* AHB peripherals */
72
#define GD32_RESET_USBFS GD32_RESET_CONFIG(AHBRST, 12U)
73
#define GD32_RESET_GPIOA GD32_RESET_CONFIG(AHBRST, 17U)
74
#define GD32_RESET_GPIOB GD32_RESET_CONFIG(AHBRST, 18U)
75
#define GD32_RESET_GPIOC GD32_RESET_CONFIG(AHBRST, 19U)
76
#define GD32_RESET_GPIOD GD32_RESET_CONFIG(AHBRST, 20U)
77
#define GD32_RESET_GPIOF GD32_RESET_CONFIG(AHBRST, 22U)
78
#define GD32_RESET_TSI GD32_RESET_CONFIG(AHBRST, 24U)
79
80
/* APB1 additional peripherals */
81
#define GD32_RESET_CTC GD32_RESET_CONFIG(ADDAPB1RST, 27U)
82
84
86
88
89
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_RESET_GD32F3X0_H_ */
gd32-common.h
GD32 reset controller devicetree helper macros.
zephyr
dt-bindings
reset
gd32f3x0.h
Generated on
for Zephyr API Documentation by
1.16.1