Skip to content

Commit d3b2934

Browse files
authored
[hal_sdk] add ch32v20x sdk (#1860)
1 parent 668cea9 commit d3b2934

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

peripherals/hal-sdk/wch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
menu "WCH HAL & SDK Drivers"
22

3+
source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig"
34
source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/ch32v307_sdk/Kconfig"
45

56
endmenu
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
# Kconfig file for package ch32v20x_sdk
3+
menuconfig PKG_USING_CH32V20x_SDK
4+
bool "CH32V20x SDK"
5+
default n
6+
7+
if PKG_USING_CH32V20x_SDK
8+
9+
config PKG_CH32V20x_SDK_PATH
10+
string
11+
default "/packages/peripherals/hal-sdk/wch/ch32v20x_sdk"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_CH32V20x_SDK_V202
19+
bool "v2.2"
20+
21+
config PKG_USING_CH32V20x_SDK_LATEST_VERSION
22+
bool "latest"
23+
endchoice
24+
25+
config PKG_CH32V20x_SDK_VER
26+
string
27+
default "v2.2" if PKG_USING_CH32V20x_SDK_V202
28+
default "latest" if PKG_USING_CH32V20x_SDK_LATEST_VERSION
29+
30+
endif
31+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "ch32v20x_sdk",
3+
"description": "CH32V20x SDK for rt-thread",
4+
"description_zh": "CH32V20x SDK for rt-thread",
5+
"enable": "PKG_USING_CH32V20x_SDK",
6+
"keywords": [
7+
"ch32v20x_sdk"
8+
],
9+
"category": "peripherals",
10+
"author": {
11+
"name": "openwch",
12+
"email": "[email protected]",
13+
"github": "openwch"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/openwch/ch32v20x",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/openwch/ch32v20x#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v2.2",
23+
"URL": "https://github.com/kaidegit/CH32V20x-SDK-for-RTT/releases/download/v2.2/CH32V20x-SDK-for-RTT-v2.2.zip",
24+
"filename": "CH32V20x-SDK-for-RTT-v2.2.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/kaidegit/CH32V20x-SDK-for-RTT.git",
29+
"filename": "",
30+
"VER_SHA": "main"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)