Skip to content
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

[peripherals][rs485] add package. #1830

Merged
merged 1 commit into from
Dec 16, 2024
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/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ source "$PKGS_DIR/packages/peripherals/bt_mx01/Kconfig"
source "$PKGS_DIR/packages/peripherals/RgPower/Kconfig"
source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig"
source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig"
source "$PKGS_DIR/packages/peripherals/ikun-485/Kconfig"

if RT_VER_NUM > 0x40101
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"
Expand Down
28 changes: 28 additions & 0 deletions peripherals/ikun-485/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

menuconfig PKG_USING_IK485
bool "ikun-485: A rs485 driver based on char device."
select RT_USING_SERIAL
select RT_USING_PIN
default n

if PKG_USING_IK485

config PKG_IK485_PATH
string
default "/packages/peripherals/ikun-485"

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

config PKG_USING_IK485_LATEST_VERSION
bool "latest"
endchoice

config PKG_IK485_VER
string
default "latest" if PKG_USING_IK485_LATEST_VERSION

endif
27 changes: 27 additions & 0 deletions peripherals/ikun-485/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "ikun-485",
"description": "rs485 driver based on char device",
"description_zh": "基于字符设备的 RS485 驱动",
"enable": "PKG_USING_IK485",
"keywords": [
"ikun-485",
"rs485"
],
"category": "peripherals",
"author": {
"name": "sulfurandcu",
"email": "[email protected]",
"github": "sulfurandcu"
},
"license": "MIT",
"repository": "https://github.com/sulfurandcu/ikun-485",
"homepage": "https://github.com/sulfurandcu/ikun-485#readme",
"site": [
{
"version": "latest",
"URL": "https://github.com/sulfurandcu/ikun-485.git",
"filename": "ikun-485.zip",
"VER_SHA": "main"
}
]
}
Loading