Skip to content

Commit 759535c

Browse files
authored
hal-sdk: add gd32 arm 软件包索引 (#1908)
* hal-sdk: add gd32 arm 软件包索引 * hal-sdk: fix hc32 and nuvoton 软件包索引文件夹名字与软件包名字不一致的问题
1 parent 03ee51a commit 759535c

File tree

18 files changed

+129
-10
lines changed

18 files changed

+129
-10
lines changed

peripherals/hal-sdk/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ 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"
1818
source "$PKGS_DIR/packages/peripherals/hal-sdk/nuvoton/Kconfig"
19+
source "$PKGS_DIR/packages/peripherals/hal-sdk/gd32/Kconfig"
1920
endmenu

peripherals/hal-sdk/gd32/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
menu "GD32 Drivers"
2+
3+
#GD32_ARM
4+
source "$PKGS_DIR/packages/peripherals/hal-sdk/gd32/gd32-arm-cmsis/Kconfig"
5+
source "$PKGS_DIR/packages/peripherals/hal-sdk/gd32/gd32-arm-series/Kconfig"
6+
7+
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 gd32_arm_cmsis_driver
3+
menuconfig PKG_USING_GD32_ARM_CMSIS_DRIVER
4+
bool "GD32 ARM CMSIS DRIVER PACKAGE"
5+
default n
6+
7+
if PKG_USING_GD32_ARM_CMSIS_DRIVER
8+
9+
config PKG_GD32_ARM_CMSIS_DRIVER_PATH
10+
string
11+
default "/packages/peripherals/hal-sdk/gd32/gd32-arm-cmsis"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_GD32_ARM_CMSIS_DRIVER_LATEST_VERSION
19+
bool "latest"
20+
endchoice
21+
22+
config PKG_GD32_ARM_CMSIS_DRIVER_VER
23+
string
24+
default "latest" if PKG_USING_GD32_ARM_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": "gd32-arm-cmsis",
3+
"description": "GD32 ARM CMSIS DRIVER PACKAGE",
4+
"description_zh": "GD32 ARM CMSIS 驱动包",
5+
"enable": "PKG_USING_GD32_ARM_CMSIS_DRIVER",
6+
"keywords": [
7+
"gd32-arm-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/gd32-arm-cmsis",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/gd32-arm-cmsis#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/gd32-arm-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 gd32_arm_series_driver
3+
menuconfig PKG_USING_GD32_ARM_SERIES_DRIVER
4+
bool "GD32 ARM SERIES DRIVER PACKAGE"
5+
select PKG_USING_GD32_ARM_CMSIS_DRIVER
6+
default n
7+
8+
if PKG_USING_GD32_ARM_SERIES_DRIVER
9+
10+
config PKG_GD32_ARM_SERIES_DRIVER_PATH
11+
string
12+
default "/packages/peripherals/hal-sdk/gd32/gd32-arm-series"
13+
14+
choice
15+
prompt "Version"
16+
help
17+
Select the package version
18+
19+
config PKG_USING_GD32_ARM_SERIES_DRIVER_LATEST_VERSION
20+
bool "latest"
21+
endchoice
22+
23+
config PKG_GD32_ARM_SERIES_DRIVER_VER
24+
string
25+
default "latest" if PKG_USING_GD32_ARM_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": "gd32-arm-series",
3+
"description": "GD32 ARM SERIES DRIVER PACKAGE",
4+
"description_zh": "GD32 ARM SERIES 驱动包",
5+
"enable": "PKG_USING_GD32_ARM_SERIES_DRIVER",
6+
"keywords": [
7+
"gd32-arm-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/gd32-arm-series",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/RT-Thread-packages/gd32-arm-series#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/RT-Thread-packages/gd32-arm-series.git",
24+
"filename": "",
25+
"VER_SHA": "master"
26+
}
27+
]
28+
}

peripherals/hal-sdk/hc32/Kconfig

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

33
#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"
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"
66

77
endmenu

peripherals/hal-sdk/hc32/hc32_f4_cmsis/Kconfig renamed to peripherals/hal-sdk/hc32/hc32-f4-cmsis/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if PKG_USING_HC32F4_CMSIS_DRIVER
88

99
config PKG_HC32F4_CMSIS_DRIVER_PATH
1010
string
11-
default "/packages/peripherals/hal-sdk/hc32/hc32_f4_cmsis"
11+
default "/packages/peripherals/hal-sdk/hc32/hc32-f4-cmsis"
1212

1313
choice
1414
prompt "Version"
File renamed without changes.

peripherals/hal-sdk/hc32/hc32_f4_series/Kconfig renamed to peripherals/hal-sdk/hc32/hc32-f4-series/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if PKG_USING_HC32F4_SERIES_DRIVER
99

1010
config PKG_HC32F4_SERIES_DRIVER_PATH
1111
string
12-
default "/packages/peripherals/hal-sdk/hc32/hc32_f4_series"
12+
default "/packages/peripherals/hal-sdk/hc32/hc32-f4-series"
1313

1414
choice
1515
prompt "Version"

0 commit comments

Comments
 (0)