From 1eccbd4c37a42c4c4386c98e9ca6b74564eb857f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8D=A3=E6=96=87?= <1059451203@qq.com> Date: Thu, 9 Jan 2025 15:32:41 +0800 Subject: [PATCH 1/9] add libcrc --- misc/Kconfig | 1 + misc/libcrc/Kconfig | 111 +++++++++++++++++++++++++++++++++++++++ misc/libcrc/package.json | 35 ++++++++++++ 3 files changed, 147 insertions(+) create mode 100644 misc/libcrc/Kconfig create mode 100644 misc/libcrc/package.json diff --git a/misc/Kconfig b/misc/Kconfig index 232672b308..b16276a553 100644 --- a/misc/Kconfig +++ b/misc/Kconfig @@ -26,6 +26,7 @@ source "$PKGS_DIR/packages/misc/vi/Kconfig" source "$PKGS_DIR/packages/misc/ki/Kconfig" source "$PKGS_DIR/packages/misc/armv7m_dwt/Kconfig" source "$PKGS_DIR/packages/misc/crclib/Kconfig" +source "$PKGS_DIR/packages/misc/libcrc/Kconfig" source "$PKGS_DIR/packages/misc/lwgps/Kconfig" source "$PKGS_DIR/packages/misc/state_machine/Kconfig" source "$PKGS_DIR/packages/misc/design_pattern/Kconfig" diff --git a/misc/libcrc/Kconfig b/misc/libcrc/Kconfig new file mode 100644 index 0000000000..8f8144f158 --- /dev/null +++ b/misc/libcrc/Kconfig @@ -0,0 +1,111 @@ + +# Kconfig file for package libcrc +menuconfig PKG_USING_LIBCRC + bool "libcrc:Multi platform MIT licensed CRC library in C." + default n + +if PKG_USING_LIBCRC + + config PKG_LIBCRC_PATH + string + default "/packages/misc/libcrc" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_LIBCRC_V100 + bool "v1.0.0" + + config PKG_USING_LIBCRC_LATEST_VERSION + bool "latest" + endchoice + + config PKG_LIBCRC_CRC8 + bool "crc8" + default n + + if PKG_LIBCRC_CRC8 + config LIBCRC_USING_CRC8 + bool "using 8 bit crc" + default n + endif + + config PKG_LIBCRC_CRC16 + bool "crc16" + default n + + if PKG_LIBCRC_CRC16 + config LIBCRC_USING_CRC16 + bool "using 16 bit crc" + default n + + config LIBCRC_USING_CRC_CCITT_1D0F + bool "using ccitt crc, 0x1D0F" + default n + + config LIBCRC_USING_CRC_CCITT_FFFF + bool "using ccitt crc, 0xFFFF" + default n + config LIBCRC_USING_CRC_DNP + bool "using dnp crc" + default n + + config LIBCRC_USING_CRC_KERMIT + bool "using kermit crc" + default n + + config LIBCRC_USING_CRC_MODBUS + bool "using modbus crc" + default n + + config LIBCRC_USING_CRC_SICK + bool "using sick crc" + default n + + config LIBCRC_USING_CRC_XMODEM + bool "using xmodem crc" + default n + endif + + config PKG_LIBCRC_CRC32 + bool "crc32" + default n + + if PKG_LIBCRC_CRC32 + config LIBCRC_USING_CRC32 + bool "using 32 bit crc" + default n + endif + + config PKG_LIBCRC_CRC64 + bool "crc64" + default n + + if PKG_LIBCRC_CRC64 + config LIBCRC_USING_CRC64_ECMA + bool "using 64 bit ecma crc" + default n + + config LIBCRC_USING_CRC64_WE + bool "using 64 bit we crc" + default n + endif + + config PKG_USING_CHECKSUM_NMEA + bool "using nmea checksum" + default n + + config PKG_USING_LIBCRC_SAMPLE + bool "using sample crc" + default n + + + config PKG_LIBCRC_VER + string + default "v1.0.0" if PKG_USING_LIBCRC_V100 + default "latest" if PKG_USING_LIBCRC_LATEST_VERSION + +endif + diff --git a/misc/libcrc/package.json b/misc/libcrc/package.json new file mode 100644 index 0000000000..306bcabbb8 --- /dev/null +++ b/misc/libcrc/package.json @@ -0,0 +1,35 @@ +{ + "name": "libcrc", + "description": "A crc verification calculation function library for porting libcrc.", + "description_zh": "一个移植libcrc的crc校验计算函数库。", + "enable": "PKG_USING_LIBCRC", + "keywords": [ + "libcrc", + "crc", + "rt-thread" + ], + "category": "misc", + "author": { + "name": "wangwang105", + "email": "1059451203@qq.com", + "github": "wangwang105" + }, + "license": "MIT", + "repository": "https://github.com/wangwang105/rtt-libcrc.git", + "icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png", + "homepage": "https://github.com/wangwang105/rtt-libcrc.git#readme", + "doc": "unknown", + "site": [ + { + "version": "v1.0.0", + "URL": "https://libcrc-1.0.0.zip", + "filename": "libcrc-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/wangwang105/rtt-libcrc.git", + "filename": "rtt-libcrc-latest.zip", + "VER_SHA": "master" + } + ] +} From d4b834f10d0dca7c2a432e452b157db076d7ce96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8D=A3=E6=96=87?= <1059451203@qq.com> Date: Thu, 9 Jan 2025 15:37:30 +0800 Subject: [PATCH 2/9] fix encode(utf-8) --- misc/libcrc/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/libcrc/package.json b/misc/libcrc/package.json index 306bcabbb8..89551f1de7 100644 --- a/misc/libcrc/package.json +++ b/misc/libcrc/package.json @@ -1,7 +1,7 @@ { "name": "libcrc", "description": "A crc verification calculation function library for porting libcrc.", - "description_zh": "一个移植libcrc的crc校验计算函数库。", + "description_zh": "涓涓Щ妞峫ibcrc鐨刢rc鏍¢獙璁$畻鍑芥暟搴撱", "enable": "PKG_USING_LIBCRC", "keywords": [ "libcrc", From d3467e0b1deea886f7260f69d26041ff8fdc5701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8D=A3=E6=96=87?= <1059451203@qq.com> Date: Fri, 17 Jan 2025 11:50:03 +0800 Subject: [PATCH 3/9] modify libcrc URL --- misc/libcrc/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/libcrc/package.json b/misc/libcrc/package.json index 89551f1de7..b932a0fa3f 100644 --- a/misc/libcrc/package.json +++ b/misc/libcrc/package.json @@ -22,7 +22,7 @@ "site": [ { "version": "v1.0.0", - "URL": "https://libcrc-1.0.0.zip", + "URL": "https://github.com/wangwang105/rtt-libcrc/archive/refs/tags/v1.0.0.zip", "filename": "libcrc-1.0.0.zip" }, { From 066d76e6888a7fc65b2843de869f1fad1b223bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=8D=A3=E6=96=87?= <1059451203@qq.com> Date: Sat, 18 Jan 2025 08:07:18 +0800 Subject: [PATCH 4/9] modify libcrc package --- misc/libcrc/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/libcrc/package.json b/misc/libcrc/package.json index b932a0fa3f..5a68e2a194 100644 --- a/misc/libcrc/package.json +++ b/misc/libcrc/package.json @@ -29,7 +29,7 @@ "version": "latest", "URL": "https://github.com/wangwang105/rtt-libcrc.git", "filename": "rtt-libcrc-latest.zip", - "VER_SHA": "master" + "VER_SHA": "main" } ] } From 0c8fc09677113cf84178e1aad626f18ff3fef82f Mon Sep 17 00:00:00 2001 From: wangwang105 <1059451203@qq.com> Date: Tue, 18 Mar 2025 15:09:17 +0800 Subject: [PATCH 5/9] add max31855 sensor --- peripherals/sensors/Kconfig | 1 + peripherals/sensors/max31855/Kconfig | 37 +++++++++++++++++++++++ peripherals/sensors/max31855/package.json | 34 +++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 peripherals/sensors/max31855/Kconfig create mode 100644 peripherals/sensors/max31855/package.json diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index e049fd0f82..a10865a50a 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -32,6 +32,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/shtc1/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/bmi088/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/hmc5883/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/max6675/Kconfig" +source "$PKGS_DIR/packages/peripherals/sensors/max31855/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/tmp1075/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/sr04/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/ccs811/Kconfig" diff --git a/peripherals/sensors/max31855/Kconfig b/peripherals/sensors/max31855/Kconfig new file mode 100644 index 0000000000..e7f644abed --- /dev/null +++ b/peripherals/sensors/max31855/Kconfig @@ -0,0 +1,37 @@ + +# Kconfig file for package max31855 +menuconfig PKG_USING_MAX31855 + bool "max31855: a package of digital temperature sensor max31855." + default n + +if PKG_USING_MAX31855 + + config PKG_MAX31855_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n + + config PKG_MAX31855_PATH + string + default "/packages/peripherals/sensors/max31855" + + choice + prompt "Version" + default PKG_USING_MAX31855_LATEST_VERSION + help + Select the package version + + config PKG_USING_MAX31855_V100 + bool "v1.0.0" + + config PKG_USING_MAX31855_LATEST_VERSION + bool "latest" + endchoice + + config PKG_MAX31855_VER + string + default "v1.0.0" if PKG_USING_MAX31855_V100 + default "latest" if PKG_USING_MAX31855_LATEST_VERSION + +endif + diff --git a/peripherals/sensors/max31855/package.json b/peripherals/sensors/max31855/package.json new file mode 100644 index 0000000000..4e697d65cf --- /dev/null +++ b/peripherals/sensors/max31855/package.json @@ -0,0 +1,34 @@ +{ + "name": "mx31855", + "description": "mx31855: a package of digital temperature sensor mx31855", + "description_zh": "鏁板瓧娓╁害浼犳劅鍣 mx31855 鐨勮蒋浠跺寘", + "enable": "PKG_USING_MAX31855", + "keywords": [ + "mx31855", + "sensor" + ], + "category": "peripherals/sensors", + "author": { + "name": "wangwang105", + "email": "1059451203@qq.com", + "github": "wangwang105" + }, + "license": "MIT", + "repository": "https://github.com/wangwang105/rtt-max31855.git", + "icon": "https://www.rt-thread.org/qa/template/fxiaomi/style/image/logo.png", + "homepage": "https://github.com/wangwang105/rtt-max31855.git#readme", + "doc": "unknown", + "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/wangwang105/rtt-max31855/releases/tag/v1.0.0", + "filename": "mx31855-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/wangwang105/rtt-max31855.git", + "filename": "rtt-mx31855-latest.zip", + "VER_SHA": "main" + } + ] +} From d0fbbb72ec686dfcf54582325c065bfb5cb17261 Mon Sep 17 00:00:00 2001 From: wangwang105 <1059451203@qq.com> Date: Tue, 18 Mar 2025 16:02:08 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E4=BF=AE=E6=AD=A3max31855=E4=BC=A0?= =?UTF-8?q?=E6=84=9F=E5=99=A8=E7=9A=84package.json=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/sensors/max31855/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/sensors/max31855/package.json b/peripherals/sensors/max31855/package.json index 4e697d65cf..7cca285275 100644 --- a/peripherals/sensors/max31855/package.json +++ b/peripherals/sensors/max31855/package.json @@ -22,7 +22,7 @@ { "version": "v1.0.0", "URL": "https://github.com/wangwang105/rtt-max31855/releases/tag/v1.0.0", - "filename": "mx31855-1.0.0.zip" + "filename": "rtt鈥攎x31855-1.0.0.zip" }, { "version": "latest", From 54dd485866fa89f90ab123a83030ab5ab1d64480 Mon Sep 17 00:00:00 2001 From: wangwang105 <1059451203@qq.com> Date: Thu, 20 Mar 2025 16:04:26 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E4=BF=AE=E6=AD=A3max31855=E4=BC=A0?= =?UTF-8?q?=E6=84=9F=E5=99=A8package.json=E4=B8=AD=E7=9A=84URL=E5=92=8C?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/sensors/max31855/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/sensors/max31855/package.json b/peripherals/sensors/max31855/package.json index 7cca285275..7ca7649935 100644 --- a/peripherals/sensors/max31855/package.json +++ b/peripherals/sensors/max31855/package.json @@ -21,7 +21,7 @@ "site": [ { "version": "v1.0.0", - "URL": "https://github.com/wangwang105/rtt-max31855/releases/tag/v1.0.0", + "URL": "https://github.com/wangwang105/rtt-max31855/releases/tag/v1.0.0.zip", "filename": "rtt鈥攎x31855-1.0.0.zip" }, { From 909040aa5fd15f2e0d4efd5ebe9dbdca8c6a05ae Mon Sep 17 00:00:00 2001 From: wangwang105 <1059451203@qq.com> Date: Mon, 24 Mar 2025 10:16:44 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E4=BF=AE=E6=AD=A3max31855=E4=BC=A0?= =?UTF-8?q?=E6=84=9F=E5=99=A8package.json=E4=B8=AD=E7=9A=84URL=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/sensors/max31855/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/sensors/max31855/package.json b/peripherals/sensors/max31855/package.json index 7ca7649935..ed40dcaaec 100644 --- a/peripherals/sensors/max31855/package.json +++ b/peripherals/sensors/max31855/package.json @@ -21,7 +21,7 @@ "site": [ { "version": "v1.0.0", - "URL": "https://github.com/wangwang105/rtt-max31855/releases/tag/v1.0.0.zip", + "URL": "https://github.com/wangwang105/rtt-max31855/archive/refs/tags/v1.0.0.zip", "filename": "rtt鈥攎x31855-1.0.0.zip" }, { From 0a0e4abef5690c7097472b75da6957b18495c5dd Mon Sep 17 00:00:00 2001 From: wangwang105 <1059451203@qq.com> Date: Mon, 24 Mar 2025 16:53:11 +0800 Subject: [PATCH 9/9] =?UTF-8?q?=E4=BF=AE=E6=AD=A3max31855=E4=BC=A0?= =?UTF-8?q?=E6=84=9F=E5=99=A8package.json=E4=B8=AD=E7=9A=84=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E3=80=81=E6=8F=8F=E8=BF=B0=E5=92=8C=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/sensors/max31855/package.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/peripherals/sensors/max31855/package.json b/peripherals/sensors/max31855/package.json index ed40dcaaec..58fb50a736 100644 --- a/peripherals/sensors/max31855/package.json +++ b/peripherals/sensors/max31855/package.json @@ -1,10 +1,10 @@ { - "name": "mx31855", - "description": "mx31855: a package of digital temperature sensor mx31855", - "description_zh": "鏁板瓧娓╁害浼犳劅鍣 mx31855 鐨勮蒋浠跺寘", + "name": "max31855", + "description": "max31855: a package of digital temperature sensor max31855", + "description_zh": "鏁板瓧娓╁害浼犳劅鍣 max31855 鐨勮蒋浠跺寘", "enable": "PKG_USING_MAX31855", "keywords": [ - "mx31855", + "max31855", "sensor" ], "category": "peripherals/sensors", @@ -22,12 +22,12 @@ { "version": "v1.0.0", "URL": "https://github.com/wangwang105/rtt-max31855/archive/refs/tags/v1.0.0.zip", - "filename": "rtt鈥攎x31855-1.0.0.zip" + "filename": "rtt鈥攎ax31855-1.0.0.zip" }, { "version": "latest", "URL": "https://github.com/wangwang105/rtt-max31855.git", - "filename": "rtt-mx31855-latest.zip", + "filename": "rtt-max31855-latest.zip", "VER_SHA": "main" } ]