Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions peripherals/hal-sdk/wch/Kconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
menu "WCH HAL & SDK Drivers"

source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig"
source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/ch32v307_sdk/Kconfig"

endmenu
31 changes: 31 additions & 0 deletions peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Kconfig file for package ch32v20x_sdk
menuconfig PKG_USING_CH32V20x_SDK
bool "CH32V20x SDK"
default n

if PKG_USING_CH32V20x_SDK

config PKG_CH32V20x_SDK_PATH
string
default "/packages/peripherals/hal-sdk/wch/ch32v20x_sdk"

choice
prompt "Version"
help
Select the package version

config PKG_USING_CH32V20x_SDK_V202
bool "v2.2"

config PKG_USING_CH32V20x_SDK_LATEST_VERSION
bool "latest"
endchoice

config PKG_CH32V20x_SDK_VER
string
default "v2.2" if PKG_USING_CH32V20x_SDK_V202
default "latest" if PKG_USING_CH32V20x_SDK_LATEST_VERSION

endif

33 changes: 33 additions & 0 deletions peripherals/hal-sdk/wch/ch32v20x_sdk/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "ch32v20x_sdk",
"description": "CH32V20x SDK for rt-thread",
"description_zh": "CH32V20x SDK for rt-thread",
"enable": "PKG_USING_CH32V20x_SDK",
"keywords": [
"ch32v20x_sdk"
],
"category": "peripherals",
"author": {
"name": "openwch",
"email": "[email protected]",
"github": "openwch"
},
"license": "Apache-2.0",
"repository": "https://github.com/openwch/ch32v20x",
"icon": "unknown",
"homepage": "https://github.com/openwch/ch32v20x#readme",
"doc": "unknown",
"site": [
{
"version": "v2.2",
"URL": "https://github.com/kaidegit/CH32V20x-SDK-for-RTT/releases/download/v2.2/CH32V20x-SDK-for-RTT-v2.2.zip",
"filename": "CH32V20x-SDK-for-RTT-v2.2.zip"
},
{
"version": "latest",
"URL": "https://github.com/kaidegit/CH32V20x-SDK-for-RTT.git",
"filename": "",
"VER_SHA": "main"
}
]
}
Loading