Skip to content

Commit 2072cbe

Browse files
authored
Merge pull request #1904 from fengmuyou/hc32_nuvoton
hal-sdk: add hc32 and nuvoton 软件包索引
2 parents 51accd9 + 7dc1c94 commit 2072cbe

File tree

17 files changed

+291
-117
lines changed

17 files changed

+291
-117
lines changed

peripherals/hal-sdk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/Kconfig"
1515
source "$PKGS_DIR/packages/peripherals/hal-sdk/at32/Kconfig"
1616
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/Kconfig"
1717
source "$PKGS_DIR/packages/peripherals/hal-sdk/nxp/Kconfig"
18+
source "$PKGS_DIR/packages/peripherals/hal-sdk/nuvoton/Kconfig"
1819
endmenu

peripherals/hal-sdk/hc32/Kconfig

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
menu "HC32 DDL Drivers"
22

3-
if SOC_HC32F4A8SI
4-
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig"
5-
endif
6-
7-
if SOC_HC32F334KA
8-
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig"
9-
endif
3+
#HC32F4
4+
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32_f4_cmsis/Kconfig"
5+
source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32_f4_series/Kconfig"
106

117
endmenu
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Kconfig file for package HC32F4_cmsis_driver
3+
menuconfig PKG_USING_HC32F4_CMSIS_DRIVER
4+
bool "HC32F4 CMSIS DRIVER PACKAGE"
5+
default n
6+
7+
if PKG_USING_HC32F4_CMSIS_DRIVER
8+
9+
config PKG_HC32F4_CMSIS_DRIVER_PATH
10+
string
11+
default "/packages/peripherals/hal-sdk/hc32/hc32_f4_cmsis"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_HC32F4_CMSIS_DRIVER_LATEST_VERSION
19+
bool "latest"
20+
endchoice
21+
22+
config PKG_HC32F4_CMSIS_DRIVER_VER
23+
string
24+
default "latest" if PKG_USING_HC32F4_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-f4-cmsis",
3+
"description": "HC32F4 CMSIS DRIVER PACKAGE",
4+
"description_zh": "HC32F4 CMSIS 驱动包",
5+
"enable": "PKG_USING_HC32F4_CMSIS_DRIVER",
6+
"keywords": [
7+
"hc32-f4-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-f4-cmsis",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/hc32-f4-cmsis#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/hc32-f4-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 hc32f4_series_driver
3+
menuconfig PKG_USING_HC32F4_SERIES_DRIVER
4+
bool "HC32F4 SERIES DRIVER PACKAGE"
5+
select PKG_USING_HC32F4_CMSIS_DRIVER
6+
default n
7+
8+
if PKG_USING_HC32F4_SERIES_DRIVER
9+
10+
config PKG_HC32F4_SERIES_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/hc32/hc32_f4_series"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_HC32F4_SERIES_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_HC32F4_SERIES_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_HC32F4_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-f4-series",
3+
"description": "HC32F4 SERIES DRIVER PACKAGE",
4+
"description_zh": "HC32F4 SERIES 驱动包",
5+
"enable": "PKG_USING_HC32F4_SERIES_DRIVER",
6+
"keywords": [
7+
"hc32-f4-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-f4-series",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/hc32-f4-series#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/hc32-f4-series.git",
24+
"filename": "",
25+
"VER_SHA": "master"
26+
}
27+
]
28+
}

peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig

Lines changed: 0 additions & 26 deletions
This file was deleted.

peripherals/hal-sdk/hc32/hc32f334_ddl/package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig

Lines changed: 0 additions & 26 deletions
This file was deleted.

peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)