diff --git a/peripherals/Kconfig b/peripherals/Kconfig index 2e90fcb65b..8349a5eb55 100644 --- a/peripherals/Kconfig +++ b/peripherals/Kconfig @@ -84,6 +84,7 @@ source "$PKGS_DIR/packages/peripherals/sean_ws2812b/Kconfig" source "$PKGS_DIR/packages/peripherals/ic74hc165/Kconfig" source "$PKGS_DIR/packages/peripherals/ist8310/Kconfig" source "$PKGS_DIR/packages/peripherals/ST7789_SPI/Kconfig" +source "$PKGS_DIR/packages/peripherals/can_uds/Kconfig" source "$PKGS_DIR/packages/peripherals/rtt_isotp-c/Kconfig" source "$PKGS_DIR/packages/peripherals/ikunLed/Kconfig" source "$PKGS_DIR/packages/peripherals/ins5t8025/Kconfig" diff --git a/peripherals/can_uds/Kconfig b/peripherals/can_uds/Kconfig index dad09fb2ab..e0470b94c6 100644 --- a/peripherals/can_uds/Kconfig +++ b/peripherals/can_uds/Kconfig @@ -1,4 +1,6 @@ -menuconfig PKG_USING_ISO14229 + +# Kconfig file for package can_uds +menuconfig PKG_USING_CAN_UDS bool "Enable iso14229 (UDS) library" default n help @@ -6,7 +8,7 @@ menuconfig PKG_USING_ISO14229 This library provides a platform-agnostic UDS client and server implementation with an RT-Thread porting layer (iso14229_rtt.c). -if PKG_USING_ISO14229 +if PKG_USING_CAN_UDS menu "Logging Configuration" config UDS_LOG_LEVEL @@ -273,4 +275,30 @@ if PKG_USING_ISO14229 endmenu endif -endif \ No newline at end of file + config PKG_USING_ISO14229 + bool + default "true" + + config PKG_CAN_UDS_PATH + string + default "/packages/peripherals/can_uds" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_CAN_UDS_V100 + bool "v1.0.0" + + config PKG_USING_CAN_UDS_LATEST_VERSION + bool "latest" + endchoice + + config PKG_CAN_UDS_VER + string + default "v1.0.0" if PKG_USING_CAN_UDS_V100 + default "latest" if PKG_USING_CAN_UDS_LATEST_VERSION + +endif + diff --git a/peripherals/can_uds/package.json b/peripherals/can_uds/package.json index 93877161bd..45240accde 100644 --- a/peripherals/can_uds/package.json +++ b/peripherals/can_uds/package.json @@ -2,7 +2,7 @@ "name": "can_uds", "description": "The implementation of the ISO14229-1 (UDS) protocol stack suitable for RT-Thread. It provides functions such as CAN console mode and file transfer.", "description_zh": "适用于 RT-Thread 的 ISO14229-1 (UDS) 协议栈实现。提供CAN控制台模式与文件传输等功能。", - "enable": "PKG_USING_ISO14229", + "enable": "PKG_USING_CAN_UDS", "keywords": [ "uds", "iso14229", @@ -12,17 +12,22 @@ ], "category": "peripherals", "author": { - "name": "hly", + "name": "wdfk-prog", "email": "1425075683@qq.com", "github": "wdfk-prog" }, "license": "MIT", - "repository": "https://github.com/wdfk-prog/can_uds.git", + "repository": "https://github.com/wdfk-prog/can_uds", "icon": "unknown", "homepage": "https://github.com/wdfk-prog/can_uds#readme", "doc": "https://github.com/wdfk-prog/can_uds/blob/master/README.md", "readme": "ISO14229-1 (UDS) library implementation for RT-Thread.", "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/wdfk-prog/can_uds/archive/refs/tags/V1.0.0.zip", + "filename": "can_uds-1.0.0.zip" + }, { "version": "latest", "URL": "https://github.com/wdfk-prog/can_uds.git", diff --git a/peripherals/rtt_isotp-c/Kconfig b/peripherals/rtt_isotp-c/Kconfig index 108b4e1bb9..0453c2ba7a 100644 --- a/peripherals/rtt_isotp-c/Kconfig +++ b/peripherals/rtt_isotp-c/Kconfig @@ -106,8 +106,26 @@ if PKG_USING_ISOTP_C Enable examples for isotp-c package, demonstrating communication between two CAN interfaces. - config PKG_ISOTP_C_VERSION - string "isotp-c version" - default "latest" + config PKG_ISOTP_C_PATH + string + default "/packages/peripherals/rtt_isotp-c" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_ISOTP_C_V100 + bool "v1.0.0" + + config PKG_USING_ISOTP_C_LATEST_VERSION + bool "latest" + endchoice + + config PKG_ISOTP_C_VER + string + default "v1.0.0" if PKG_USING_ISOTP_C_V100 + default "latest" if PKG_USING_ISOTP_C_LATEST_VERSION + endif diff --git a/peripherals/rtt_isotp-c/package.json b/peripherals/rtt_isotp-c/package.json index 5edeece5d0..52fefcf5ec 100644 --- a/peripherals/rtt_isotp-c/package.json +++ b/peripherals/rtt_isotp-c/package.json @@ -19,6 +19,11 @@ "doc": "https://github.com/wdfk-prog/rtt_isotp-c.git#readme", "readme": "Adapter layer for CAN TP (ISO 15765-2). Designed for scenarios involving multi-frame transmission (can be interfaced to implement protocols such as YMODEM).", "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/wdfk-prog/rtt_isotp-c/archive/refs/tags/v1.01.00.zip", + "filename": "rtt_isotp_c-1.0.0.zip" + }, { "version": "latest", "URL": "https://github.com/wdfk-prog/rtt_isotp-c.git",