Skip to content

Commit

Permalink
add lhc-modbus package index
Browse files Browse the repository at this point in the history
  • Loading branch information
LHC committed Oct 25, 2023
1 parent a21b528 commit c471e49
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions iot/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ source "$PKGS_DIR/packages/iot/zFTP/Kconfig"
source "$PKGS_DIR/packages/iot/wol/Kconfig"
source "$PKGS_DIR/packages/iot/zephyr_polling/Kconfig"
source "$PKGS_DIR/packages/iot/matter-adaptation-layer/Kconfig"
source "$PKGS_DIR/packages/iot/lhc_modbus/Kconfig"
endmenu
36 changes: 36 additions & 0 deletions iot/lhc_modbus/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

# Kconfig file for package lhc_modbus
menuconfig PKG_USING_LHC_MODBUS
bool "Lightweight and high-performance C language modbus protocol stack."
default n

if PKG_USING_LHC_MODBUS

config PKG_LHC_MODBUS_PATH
string
default "/packages/iot/lhc_modbus"

config LHC_MODBUS_USING_SAMPLES
bool "Enable samples"
default n

choice
prompt "Version"
default PKG_USING_LHC_MODBUS_LATEST_VERSION
help
Select the package version

config PKG_USING_LHC_MODBUS_V100
bool "v1.0.0"

config PKG_USING_LHC_MODBUS_LATEST_VERSION
bool "latest"
endchoice

config PKG_LHC_MODBUS_VER
string
default "v1.0.0" if PKG_USING_LHC_MODBUS_V100
default "latest" if PKG_USING_LHC_MODBUS_LATEST_VERSION

endif

33 changes: 33 additions & 0 deletions iot/lhc_modbus/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "lhc_modbus",
"description": "Lightweight and high-performance C language modbus protocol stack.",
"description_zh": "轻量级和高性能的C语言modbus协议栈。",
"enable": "PKG_USING_LHC_MODBUS",
"keywords": [
"lhc_modbus"
],
"category": "iot",
"author": {
"name": "LHC324",
"email": "[email protected]",
"github": "LHC324"
},
"license": "Apache-2.0",
"repository": "https://github.com/LHC324/lhc_modbus",
"icon": "unknown",
"homepage": "https://github.com/LHC324/lhc_modbus#readme",
"doc": "unknown",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/LHC324/lhc_modbus/archive/V1.0.0.zip",
"filename": "lhc_modbus-1.0.0.zip"
},
{
"version": "latest",
"URL": "https://github.com/LHC324/lhc_modbus.git",
"filename": "",
"VER_SHA": "master"
}
]
}

0 comments on commit c471e49

Please sign in to comment.