diff --git a/misc/Kconfig b/misc/Kconfig index 232672b308..91e8aa7f46 100644 --- a/misc/Kconfig +++ b/misc/Kconfig @@ -37,4 +37,5 @@ source "$PKGS_DIR/packages/misc/soem/Kconfig" source "$PKGS_DIR/packages/misc/qparam/Kconfig" source "$PKGS_DIR/packages/misc/CorevMCU_CLI/Kconfig" source "$PKGS_DIR/packages/misc/get_irq_priority/Kconfig" +source "$PKGS_DIR/packages/misc/drmp/Kconfig" endmenu diff --git a/misc/drmp/Kconfig b/misc/drmp/Kconfig new file mode 100644 index 0000000000..322db23485 --- /dev/null +++ b/misc/drmp/Kconfig @@ -0,0 +1,40 @@ + +# Kconfig file for package drmp + +menuconfig PKG_USING_DRMP + bool "A protocol stack used for remote device maintenance" + default n + +if PKG_USING_DRMP + + config PKG_DRMP_PATH + string + default "/packages/misc/drmp" + + config DRMP_VCOM_TOTAL + int "vcom total (2 - 16)" + default 2 + + config DRMP_USING_SAMPLE + bool "using sample" + default n + + choice + prompt "Version" + default PKG_USING_DRMP_LATEST_VERSION + help + Select the package version + + config PKG_USING_DRMP_LATEST_VERSION + bool "latest" + + config PKG_USING_DRMP_V100 + bool "v1.00" + endchoice + + config PKG_DRMP_VER + string + default "latest" if PKG_USING_DRMP_LATEST_VERSION + default "v1.00" if PKG_USING_DRMP_V100 + +endif diff --git a/misc/drmp/package.json b/misc/drmp/package.json new file mode 100644 index 0000000000..5131783a4e --- /dev/null +++ b/misc/drmp/package.json @@ -0,0 +1,34 @@ +{ + "name": "drmp", + "description": "A protocol stack used for remote device maintenance", + "description_zh": "用于设备远程维护的协议栈", + "enable": "PKG_USING_DRMP", + "keywords": [ + "protocol", + "remote", + "maintenance" + ], + "category": "misc", + "author": { + "name": "qiyongzhong0", + "email": "917768104@qq.com", + "github": "qiyongzhong0" + }, + "license": " LGPL-2.1", + "repository": "https://github.com/qiyongzhong0/rt-thread-drmp", + "homepage": "https://github.com/qiyongzhong0/rt-thread-drmp#readme", + "site": [ + { + "version": "latest", + "URL": "https://github.com/qiyongzhong0/rt-thread-drmp.git", + "filename": "", + "VER_SHA": "master" + }, + { + "version": "v1.00", + "URL": "https://github.com/qiyongzhong0/rt-thread-drmp/archive/v1.00.zip", + "filename": "rt-thread-drmp-1.00.zip", + "VER_SHA": "" + } + ] +} diff --git a/peripherals/rs485/Kconfig b/peripherals/rs485/Kconfig index 5927d8ea8e..6aecf9f191 100644 --- a/peripherals/rs485/Kconfig +++ b/peripherals/rs485/Kconfig @@ -13,10 +13,30 @@ if PKG_USING_RS485 string default "/packages/peripherals/rs485" + config RS485_USING_DEV + bool "using making RS485 device" + default n + + config RS485_USING_DMA_RX + bool "Receive using the DMA mode" + default n + + config RS485_USING_INT_TX + bool "Send using the interrupt mode" + default n + + config RS485_USING_DMA_TX + bool "Send using the DMA mode" + default n + + config RS485_SW_DLY_US + int "Configure the sending and receiving switching delay" + default 0 + config RS485_USING_TEST bool "using test" default n - + if RS485_USING_TEST config RS485_TEST_SERIAL @@ -115,6 +135,15 @@ if PKG_USING_RS485 config PKG_USING_RS485_LATEST_VERSION bool "latest" + config PKG_USING_RS485_V106 + bool "v1.06" + + config PKG_USING_RS485_V105 + bool "v1.05" + + config PKG_USING_RS485_V104 + bool "v1.04" + config PKG_USING_RS485_V103 bool "v1.03" @@ -131,6 +160,9 @@ if PKG_USING_RS485 config PKG_RS485_VER string default "latest" if PKG_USING_RS485_LATEST_VERSION + default "v1.06" if PKG_USING_RS485_V106 + default "v1.05" if PKG_USING_RS485_V105 + default "v1.04" if PKG_USING_RS485_V104 default "v1.03" if PKG_USING_RS485_V103 default "v1.02" if PKG_USING_RS485_V102 default "v1.01" if PKG_USING_RS485_V101 diff --git a/peripherals/rs485/package.json b/peripherals/rs485/package.json index 49bad7a6e7..648328544a 100644 --- a/peripherals/rs485/package.json +++ b/peripherals/rs485/package.json @@ -43,6 +43,24 @@ "filename": "rt-thread-rs485-1.03.zip", "VER_SHA": "" }, + { + "version": "v1.04", + "URL": "https://github.com/qiyongzhong0/rt-thread-rs485/archive/v1.04.zip", + "filename": "rt-thread-rs485-1.04.zip", + "VER_SHA": "" + }, + { + "version": "v1.05", + "URL": "https://github.com/qiyongzhong0/rt-thread-rs485/archive/v1.05.zip", + "filename": "rt-thread-rs485-1.05.zip", + "VER_SHA": "" + }, + { + "version": "v1.06", + "URL": "https://github.com/qiyongzhong0/rt-thread-rs485/archive/v1.06.zip", + "filename": "rt-thread-rs485-1.06.zip", + "VER_SHA": "" + }, { "version": "latest", "URL": "https://github.com/qiyongzhong0/rt-thread-rs485.git",