From 8aff83c6d3652cee882fd03376fdd7e78d977759 Mon Sep 17 00:00:00 2001 From: JamieTx Date: Thu, 24 Apr 2025 13:42:46 +0800 Subject: [PATCH] [hc32] Add the indexes of hc32f4a8 and hc32f334 package repositories. --- peripherals/hal-sdk/Kconfig | 1 + peripherals/hal-sdk/hc32/Kconfig | 11 +++++++ peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig | 26 +++++++++++++++++ .../hal-sdk/hc32/hc32f334_ddl/package.json | 29 +++++++++++++++++++ peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig | 26 +++++++++++++++++ .../hal-sdk/hc32/hc32f4a8_ddl/package.json | 29 +++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 peripherals/hal-sdk/hc32/Kconfig create mode 100644 peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig create mode 100644 peripherals/hal-sdk/hc32/hc32f334_ddl/package.json create mode 100644 peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig create mode 100644 peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json diff --git a/peripherals/hal-sdk/Kconfig b/peripherals/hal-sdk/Kconfig index 1995cd7f56..be59f15f7e 100644 --- a/peripherals/hal-sdk/Kconfig +++ b/peripherals/hal-sdk/Kconfig @@ -13,5 +13,6 @@ source "$PKGS_DIR/packages/peripherals/hal-sdk/raspberrypi-pico-sdk/Kconfig" source "$PKGS_DIR/packages/peripherals/mm32/Kconfig" source "$PKGS_DIR/packages/peripherals/hal-sdk/wch/Kconfig" source "$PKGS_DIR/packages/peripherals/hal-sdk/at32/Kconfig" +source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/Kconfig" endmenu diff --git a/peripherals/hal-sdk/hc32/Kconfig b/peripherals/hal-sdk/hc32/Kconfig new file mode 100644 index 0000000000..4abf92cb7c --- /dev/null +++ b/peripherals/hal-sdk/hc32/Kconfig @@ -0,0 +1,11 @@ +menu "HC32 DDL Drivers" + +if SOC_HC32F4A8SI + source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig" +endif + +if SOC_HC32F334KA + source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig" +endif + +endmenu diff --git a/peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig b/peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig new file mode 100644 index 0000000000..f326899fac --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig @@ -0,0 +1,26 @@ +# Kconfig file for package hc32f334_ddl +menuconfig PKG_USING_HC32F334_DDL + bool "Add the HC32F334 library files." + default n + +if PKG_USING_HC32F334_DDL + + config PKG_HC32F334_DDL_PATH + string + default "/packages/peripherals/hal-sdk/hc32/hc32f334_ddl" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_HC32F334_DDL_LATEST_VERSION + bool "latest" + endchoice + + config PKG_HC32F334_DDL_VER + string + default "latest" if PKG_USING_HC32F334_DDL_LATEST_VERSION + +endif + diff --git a/peripherals/hal-sdk/hc32/hc32f334_ddl/package.json b/peripherals/hal-sdk/hc32/hc32f334_ddl/package.json new file mode 100644 index 0000000000..bf1fae277e --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32f334_ddl/package.json @@ -0,0 +1,29 @@ +{ + "name": "hc32f334_ddl", + "description": "This package is used to store the DDL library file of HC32F334", + "description_zh": "该软件包用于存放HC32F334的DDL库文件", + "enable": "PKG_USING_HC32F334_DDL", + "keywords": [ + "hc32f334_ddl", + "HC32F334" + ], + "category": "peripherals", + "author": { + "name": "levizh", + "email": "levizhangxl@gmail.com", + "github": "levizh" + }, + "license": "BSD-3-Clause", + "repository": "https://github.com/levizh/hc32f334_ddl_rtt", + "icon": "unknown", + "homepage": "https://github.com/levizh/hc32f334_ddl_rtt#readme", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/levizh/hc32f334_ddl_rtt.git", + "filename": "hc32f334_ddl_rtt", + "VER_SHA": "main" + } + ] +} diff --git a/peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig b/peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig new file mode 100644 index 0000000000..4e2df7f856 --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig @@ -0,0 +1,26 @@ +# Kconfig file for package hc32f4a8_ddl +menuconfig PKG_USING_HC32F4A8_DDL + bool "Add the HC32F4A8 library files." + default n + +if PKG_USING_HC32F4A8_DDL + + config PKG_HC32F4A8_DDL_PATH + string + default "/packages/peripherals/hal-sdk/hc32/hc32f4a8_ddl" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_HC32F4A8_DDL_LATEST_VERSION + bool "latest" + endchoice + + config PKG_HC32F4A8_DDL_VER + string + default "latest" if PKG_USING_HC32F4A8_DDL_LATEST_VERSION + +endif + diff --git a/peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json b/peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json new file mode 100644 index 0000000000..1d75966b8b --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json @@ -0,0 +1,29 @@ +{ + "name": "hc32f4a8_ddl", + "description": "This package is used to store the DDL library file of HC32F4A8", + "description_zh": "该软件包用于存放HC32F4A8的DDL库文件", + "enable": "PKG_USING_HC32F4A8_DDL", + "keywords": [ + "hc32f4a8_ddl", + "HC32F4A8" + ], + "category": "peripherals", + "author": { + "name": "levizh", + "email": "levizhangxl@gmail.com", + "github": "levizh" + }, + "license": "BSD-3-Clause", + "repository": "https://github.com/levizh/hc32f4a8_ddl_rtt", + "icon": "unknown", + "homepage": "https://github.com/levizh/hc32f4a8_ddl_rtt#readme", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/levizh/hc32f4a8_ddl_rtt.git", + "filename": "hc32f4a8_ddl_rtt", + "VER_SHA": "main" + } + ] +}