diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 9aed413911..701bc3ca6d 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -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" diff --git a/peripherals/ikun-485/Kconfig b/peripherals/ikun-485/Kconfig new file mode 100644 index 0000000000..e3dde755e6 --- /dev/null +++ b/peripherals/ikun-485/Kconfig @@ -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 diff --git a/peripherals/ikun-485/package.json b/peripherals/ikun-485/package.json new file mode 100644 index 0000000000..6e97671419 --- /dev/null +++ b/peripherals/ikun-485/package.json @@ -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": "sulfurandcu@gmail.com", + "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" + } + ] +}