Skip to content

[hc32] Add the indexes of hc32f4a8 and hc32f334 package repositories. #1883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2025
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/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 11 additions & 0 deletions peripherals/hal-sdk/hc32/Kconfig
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions peripherals/hal-sdk/hc32/hc32f334_ddl/Kconfig
Original file line number Diff line number Diff line change
@@ -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

29 changes: 29 additions & 0 deletions peripherals/hal-sdk/hc32/hc32f334_ddl/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}
26 changes: 26 additions & 0 deletions peripherals/hal-sdk/hc32/hc32f4a8_ddl/Kconfig
Original file line number Diff line number Diff line change
@@ -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

29 changes: 29 additions & 0 deletions peripherals/hal-sdk/hc32/hc32f4a8_ddl/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}