Skip to content

Commit b3263f7

Browse files
authored
Merge pull request #1915 from levizh/hc32_f3_250716
[HC32] Add hc32-f3-cmsis and hc32-f3-series.
2 parents 0b9cc3d + 73e798a commit b3263f7

File tree

5 files changed

+115
-0
lines changed

5 files changed

+115
-0
lines changed

peripherals/hal-sdk/hc32/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
menu "HC32 DDL Drivers"
22

3+
#HC32F3
4+
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f3-cmsis/Kconfig"
5+
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f3-series/Kconfig"
6+
37
#HC32F4
48
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f4-cmsis/Kconfig"
59
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f4-series/Kconfig"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Kconfig file for package HC32F3_cmsis_driver
3+
menuconfig PKG_USING_HC32F3_CMSIS_DRIVER
4+
bool "HC32F3 CMSIS DRIVER PACKAGE"
5+
default n
6+
7+
if PKG_USING_HC32F3_CMSIS_DRIVER
8+
9+
config PKG_HC32F3_CMSIS_DRIVER_PATH
10+
string
11+
default "/packages/peripherals/hal-sdk/hc32/hc32-f3-cmsis"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_HC32F3_CMSIS_DRIVER_LATEST_VERSION
19+
bool "latest"
20+
endchoice
21+
22+
config PKG_HC32F3_CMSIS_DRIVER_VER
23+
string
24+
default "latest" if PKG_USING_HC32F3_CMSIS_DRIVER_LATEST_VERSION
25+
26+
endif
27+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "hc32-f3-cmsis",
3+
"description": "HC32F3 CMSIS DRIVER PACKAGE",
4+
"description_zh": "HC32F3 CMSIS 驱动包",
5+
"enable": "PKG_USING_HC32F3_CMSIS_DRIVER",
6+
"keywords": [
7+
"hc32-f3-cmsis"
8+
],
9+
"category": "peripherals",
10+
"author": {
11+
"name": "RT-Thread-packages",
12+
"email": "[email protected]",
13+
"github": "RT-Thread-packages"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/RT-Thread-packages/hc32-f3-cmsis",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/hc32-f3-cmsis#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/hc32-f3-cmsis.git",
24+
"filename": "",
25+
"VER_SHA": "master"
26+
}
27+
]
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
# Kconfig file for package hc32f3_series_driver
3+
menuconfig PKG_USING_HC32F3_SERIES_DRIVER
4+
bool "HC32F3 SERIES DRIVER PACKAGE"
5+
select PKG_USING_HC32F3_CMSIS_DRIVER
6+
default n
7+
8+
if PKG_USING_HC32F3_SERIES_DRIVER
9+
10+
config PKG_HC32F3_SERIES_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/hc32/hc32-f3-series"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_HC32F3_SERIES_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_HC32F3_SERIES_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_HC32F3_SERIES_DRIVER_LATEST_VERSION
26+
27+
endif
28+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "hc32-f3-series",
3+
"description": "HC32F3 SERIES DRIVER PACKAGE",
4+
"description_zh": "HC32F3 SERIES 驱动包",
5+
"enable": "PKG_USING_HC32F3_SERIES_DRIVER",
6+
"keywords": [
7+
"hc32-f3-series"
8+
],
9+
"category": "peripherals",
10+
"author": {
11+
"name": "RT-Thread-packages",
12+
"email": "[email protected]",
13+
"github": "RT-Thread-packages"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/RT-Thread-packages/hc32-f3-series",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/hc32-f3-series#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/hc32-f3-series.git",
24+
"filename": "",
25+
"VER_SHA": "master"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)