diff --git a/peripherals/hal-sdk/wch/Kconfig b/peripherals/hal-sdk/wch/Kconfig index 65cb109519..f39193b269 100644 --- a/peripherals/hal-sdk/wch/Kconfig +++ b/peripherals/hal-sdk/wch/Kconfig @@ -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 diff --git a/peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig b/peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig new file mode 100644 index 0000000000..ab90c36b36 --- /dev/null +++ b/peripherals/hal-sdk/wch/ch32v20x_sdk/Kconfig @@ -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 + diff --git a/peripherals/hal-sdk/wch/ch32v20x_sdk/package.json b/peripherals/hal-sdk/wch/ch32v20x_sdk/package.json new file mode 100644 index 0000000000..f8ede27331 --- /dev/null +++ b/peripherals/hal-sdk/wch/ch32v20x_sdk/package.json @@ -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": "xxx@xx.com", + "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" + } + ] +}