diff --git a/peripherals/hal-sdk/hc32/Kconfig b/peripherals/hal-sdk/hc32/Kconfig index d9ca567d5e..d94338ec21 100644 --- a/peripherals/hal-sdk/hc32/Kconfig +++ b/peripherals/hal-sdk/hc32/Kconfig @@ -1,5 +1,9 @@ menu "HC32 DDL Drivers" +#HC32F3 +source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f3-cmsis/Kconfig" +source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f3-series/Kconfig" + #HC32F4 source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f4-cmsis/Kconfig" source "$PKGS_DIR/packages/peripherals/hal-sdk/hc32/hc32-f4-series/Kconfig" diff --git a/peripherals/hal-sdk/hc32/hc32-f3-cmsis/Kconfig b/peripherals/hal-sdk/hc32/hc32-f3-cmsis/Kconfig new file mode 100644 index 0000000000..9d1345e3f5 --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32-f3-cmsis/Kconfig @@ -0,0 +1,27 @@ + +# Kconfig file for package HC32F3_cmsis_driver +menuconfig PKG_USING_HC32F3_CMSIS_DRIVER + bool "HC32F3 CMSIS DRIVER PACKAGE" + default n + +if PKG_USING_HC32F3_CMSIS_DRIVER + + config PKG_HC32F3_CMSIS_DRIVER_PATH + string + default "/packages/peripherals/hal-sdk/hc32/hc32-f3-cmsis" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_HC32F3_CMSIS_DRIVER_LATEST_VERSION + bool "latest" + endchoice + + config PKG_HC32F3_CMSIS_DRIVER_VER + string + default "latest" if PKG_USING_HC32F3_CMSIS_DRIVER_LATEST_VERSION + +endif + diff --git a/peripherals/hal-sdk/hc32/hc32-f3-cmsis/package.json b/peripherals/hal-sdk/hc32/hc32-f3-cmsis/package.json new file mode 100644 index 0000000000..465ecb9bb9 --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32-f3-cmsis/package.json @@ -0,0 +1,28 @@ +{ + "name": "hc32-f3-cmsis", + "description": "HC32F3 CMSIS DRIVER PACKAGE", + "description_zh": "HC32F3 CMSIS 驱动包", + "enable": "PKG_USING_HC32F3_CMSIS_DRIVER", + "keywords": [ + "hc32-f3-cmsis" + ], + "category": "peripherals", + "author": { + "name": "RT-Thread-packages", + "email": "package_team@rt-thread.com", + "github": "RT-Thread-packages" + }, + "license": "Apache-2.0", + "repository": "https://github.com/RT-Thread-packages/hc32-f3-cmsis", + "icon": "unknown", + "homepage": "https://github.com/RT-Thread-packages/hc32-f3-cmsis#readme", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/RT-Thread-packages/hc32-f3-cmsis.git", + "filename": "", + "VER_SHA": "master" + } + ] +} diff --git a/peripherals/hal-sdk/hc32/hc32-f3-series/Kconfig b/peripherals/hal-sdk/hc32/hc32-f3-series/Kconfig new file mode 100644 index 0000000000..21d9b3a079 --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32-f3-series/Kconfig @@ -0,0 +1,28 @@ + +# Kconfig file for package hc32f3_series_driver +menuconfig PKG_USING_HC32F3_SERIES_DRIVER + bool "HC32F3 SERIES DRIVER PACKAGE" + select PKG_USING_HC32F3_CMSIS_DRIVER + default n + +if PKG_USING_HC32F3_SERIES_DRIVER + + config PKG_HC32F3_SERIES_DRIVER_PATH + string + default "/packages/peripherals/hal-sdk/hc32/hc32-f3-series" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_HC32F3_SERIES_DRIVER_LATEST_VERSION + bool "latest" + endchoice + + config PKG_HC32F3_SERIES_DRIVER_VER + string + default "latest" if PKG_USING_HC32F3_SERIES_DRIVER_LATEST_VERSION + +endif + diff --git a/peripherals/hal-sdk/hc32/hc32-f3-series/package.json b/peripherals/hal-sdk/hc32/hc32-f3-series/package.json new file mode 100644 index 0000000000..4728bb0b2e --- /dev/null +++ b/peripherals/hal-sdk/hc32/hc32-f3-series/package.json @@ -0,0 +1,28 @@ +{ + "name": "hc32-f3-series", + "description": "HC32F3 SERIES DRIVER PACKAGE", + "description_zh": "HC32F3 SERIES 驱动包", + "enable": "PKG_USING_HC32F3_SERIES_DRIVER", + "keywords": [ + "hc32-f3-series" + ], + "category": "peripherals", + "author": { + "name": "RT-Thread-packages", + "email": "package_team@rt-thread.com", + "github": "RT-Thread-packages" + }, + "license": "Apache-2.0", + "repository": "https://github.com/RT-Thread-packages/hc32-f3-series", + "icon": "unknown", + "homepage": "https://github.com/RT-Thread-packages/hc32-f3-series#readme", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/RT-Thread-packages/hc32-f3-series.git", + "filename": "", + "VER_SHA": "master" + } + ] +}