Skip to content

Commit 8bfbc9a

Browse files
sulfurandcuRbb666
authored andcommitted
[peripherals][rs485] add package.
1 parent 632cbd6 commit 8bfbc9a

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

peripherals/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ source "$PKGS_DIR/packages/peripherals/bt_mx01/Kconfig"
7878
source "$PKGS_DIR/packages/peripherals/RgPower/Kconfig"
7979
source "$PKGS_DIR/packages/peripherals/bt_mx02/Kconfig"
8080
source "$PKGS_DIR/packages/peripherals/gc9a01/Kconfig"
81+
source "$PKGS_DIR/packages/peripherals/ikun-485/Kconfig"
8182

8283
if RT_VER_NUM > 0x40101
8384
source "$PKGS_DIR/packages/peripherals/spi-tools/Kconfig"

peripherals/ikun-485/Kconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
menuconfig PKG_USING_IK485
3+
bool "ikun-485: A rs485 driver based on char device."
4+
select RT_USING_SERIAL
5+
select RT_USING_PIN
6+
default n
7+
8+
if PKG_USING_IK485
9+
10+
config PKG_IK485_PATH
11+
string
12+
default "/packages/peripherals/ikun-485"
13+
14+
choice
15+
prompt "Version"
16+
default PKG_USING_IK485_LATEST_VERSION
17+
help
18+
Select the package version
19+
20+
config PKG_USING_IK485_LATEST_VERSION
21+
bool "latest"
22+
endchoice
23+
24+
config PKG_IK485_VER
25+
string
26+
default "latest" if PKG_USING_IK485_LATEST_VERSION
27+
28+
endif

peripherals/ikun-485/package.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "ikun-485",
3+
"description": "rs485 driver based on char device",
4+
"description_zh": "基于字符设备的 RS485 驱动",
5+
"enable": "PKG_USING_IK485",
6+
"keywords": [
7+
"ikun-485",
8+
"rs485"
9+
],
10+
"category": "peripherals",
11+
"author": {
12+
"name": "sulfurandcu",
13+
"email": "[email protected]",
14+
"github": "sulfurandcu"
15+
},
16+
"license": "MIT",
17+
"repository": "https://github.com/sulfurandcu/ikun-485",
18+
"homepage": "https://github.com/sulfurandcu/ikun-485#readme",
19+
"site": [
20+
{
21+
"version": "latest",
22+
"URL": "https://github.com/sulfurandcu/ikun-485.git",
23+
"filename": "ikun-485.zip",
24+
"VER_SHA": "main"
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)