File tree Expand file tree Collapse file tree 5 files changed +95
-0
lines changed
soc/arm/gigadevice/gd32f4 Expand file tree Collapse file tree 5 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2021 BrainCo Inc.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ if SOC_GD32F405R || SOC_GD32F405V || SOC_GD32F405Z
5+
6+ config SOC
7+ default "gd32f405r" if SOC_GD32F405R
8+ default "gd32f405v" if SOC_GD32F405V
9+ default "gd32f405z" if SOC_GD32F405Z
10+
11+ config SOC_SERIES_GD32F405
12+ bool
13+ default y
14+
15+ config SYS_CLOCK_HW_CYCLES_PER_SEC
16+ default 168000000
17+
18+ config NUM_IRQS
19+ default 82
20+
21+ endif
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2021 BrainCo Inc.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ if SOC_GD32F407R || SOC_GD32F407V || SOC_GD32F407Z
5+
6+ config SOC
7+ default "gd32f407r" if SOC_GD32F407R
8+ default "gd32f407v" if SOC_GD32F407V
9+ default "gd32f407z" if SOC_GD32F407Z
10+
11+ config SOC_SERIES_GD32F407
12+ bool
13+ default y
14+
15+ config SYS_CLOCK_HW_CYCLES_PER_SEC
16+ default 168000000
17+
18+ config NUM_IRQS
19+ default 82
20+
21+ endif
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2021 BrainCo Inc.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ if SOC_GD32F450V || SOC_GD32F450Z || SOC_GD32F450I
5+
6+ config SOC
7+ default "gd32f450v" if SOC_GD32F450V
8+ default "gd32f450z" if SOC_GD32F450Z
9+ default "gd32f450i" if SOC_GD32F450I
10+
11+ config SOC_SERIES_GD32F450
12+ bool
13+ default y
14+
15+ config SYS_CLOCK_HW_CYCLES_PER_SEC
16+ default 200000000
17+
18+ config NUM_IRQS
19+ default 91
20+
21+ endif
Original file line number Diff line number Diff line change 11# Copyright (c) 2021, ATL Electronics
2+ # Copyright (c) 2021 BrainCo Inc.
23# SPDX-License-Identifier: Apache-2.0
34
45choice
@@ -14,4 +15,31 @@ choice
1415 config SOC_GD32F403Z
1516 bool "gd32f403z"
1617
18+ config SOC_GD32F405R
19+ bool "gd32f405r"
20+
21+ config SOC_GD32F405V
22+ bool "gd32f405v"
23+
24+ config SOC_GD32F405Z
25+ bool "gd32f405z"
26+
27+ config SOC_GD32F407R
28+ bool "gd32f407r"
29+
30+ config SOC_GD32F407V
31+ bool "gd32f407v"
32+
33+ config SOC_GD32F407Z
34+ bool "gd32f407z"
35+
36+ config SOC_GD32F450V
37+ bool "gd32f450v"
38+
39+ config SOC_GD32F450Z
40+ bool "gd32f450z"
41+
42+ config SOC_GD32F450I
43+ bool "gd32f450i"
44+
1745endchoice
Original file line number Diff line number Diff line change 2222
2323#if defined(CONFIG_SOC_SERIES_GD32F403 )
2424#include <gd32f403.h>
25+ #elif defined(CONFIG_SOC_SERIES_GD32F405 ) || \
26+ defined(CONFIG_SOC_SERIES_GD32F407 ) || \
27+ defined(CONFIG_SOC_SERIES_GD32F450 )
28+ #include <gd32f4xx.h>
2529#else
2630#error Library does not support the specified device.
2731#endif
You can’t perform that action at this time.
0 commit comments