From abf01123f76af2868d06a9fde252374408d61354 Mon Sep 17 00:00:00 2001 From: lgnq Date: Sat, 25 Oct 2025 12:04:25 +0800 Subject: [PATCH 1/4] add Melexis MLX90396 package --- peripherals/sensors/Kconfig | 1 + peripherals/sensors/mlx90396/Kconfig | 41 +++++++++++++++++++++++ peripherals/sensors/mlx90396/package.json | 28 ++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 peripherals/sensors/mlx90396/Kconfig create mode 100644 peripherals/sensors/mlx90396/package.json diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index 45229b6b89..9e8daec6a6 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -43,6 +43,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/mlx90382/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90393/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90392/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90394/Kconfig" +source "$PKGS_DIR/packages/peripherals/sensors/mlx90396/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90397/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/ms5611/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/max31865/Kconfig" diff --git a/peripherals/sensors/mlx90396/Kconfig b/peripherals/sensors/mlx90396/Kconfig new file mode 100644 index 0000000000..737399a185 --- /dev/null +++ b/peripherals/sensors/mlx90396/Kconfig @@ -0,0 +1,41 @@ + +# Kconfig file for package mlx90396 +menuconfig PKG_USING_MLX90396 + bool "MLX90396: 3D magnetometer sensor" + default n + +if PKG_USING_MLX90396 + + config PKG_MLX90396_PATH + string + default "/packages/peripherals/sensors/mlx90396" + + config PKG_MLX90396_USING_SENSOR_V1 + bool "Enable sensor_v1 device framework" + select RT_USING_SENSOR + default n + + config PKG_USING_MLX90396_SAMPLE + bool "Enable MLX90396 Sample" + default n + + choice + prompt "Version" + default PKG_USING_MLX90396_LATEST_VERSION + help + Select the package version + + config PKG_USING_MLX90396_V100 + bool "v1.0.0" + + config PKG_USING_MLX90396_LATEST_VERSION + bool "latest" + endchoice + + config PKG_MLX90396_VER + string + default "v1.0.0" if PKG_USING_MLX90396_V100 + default "latest" if PKG_USING_MLX90396_LATEST_VERSION + +endif + diff --git a/peripherals/sensors/mlx90396/package.json b/peripherals/sensors/mlx90396/package.json new file mode 100644 index 0000000000..2b53d3b2bb --- /dev/null +++ b/peripherals/sensors/mlx90396/package.json @@ -0,0 +1,28 @@ +{ + "name": "mlx90396", + "description": "The MLX90396 is the newest addition to the Melexis position sensing portfolio, bringing the highest flexibility in the portfolio’s smallest assembly. Complementing this, the magnetic fi eld sensor is designed for micropower applications, with programmable duty cycles in the range of 0.1% to 100%.", + "description_zh": "MLX90396 是来自迈来芯公司的一颗低功耗的3D磁位置传感器", + "enable": "PKG_USING_MLX90396", + "keywords": [ + "mlx90396" + ], + "category": "peripherals/sensors", + "author": { + "name": "lgnq", + "email": "dzzxzz@gmail.com", + "github": "lgnq" + }, + "license": "Apache-2.0", + "repository": "https://github.com/lgnq/mlx90396", + "icon": "unknown", + "homepage": "https://github.com/lgnq/mlx90396`", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/lgnq/mlx90396.git", + "filename": "mlx90396.zip", + "VER_SHA": "main" + } + ] +} From b7eff6a57f93dd4a9bbc2db2ad2df0e35576a602 Mon Sep 17 00:00:00 2001 From: lgnq Date: Sat, 25 Oct 2025 16:14:50 +0800 Subject: [PATCH 2/4] Update package.json --- peripherals/sensors/mlx90396/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peripherals/sensors/mlx90396/package.json b/peripherals/sensors/mlx90396/package.json index 2b53d3b2bb..f257781c41 100644 --- a/peripherals/sensors/mlx90396/package.json +++ b/peripherals/sensors/mlx90396/package.json @@ -1,7 +1,7 @@ { "name": "mlx90396", - "description": "The MLX90396 is the newest addition to the Melexis position sensing portfolio, bringing the highest flexibility in the portfolio’s smallest assembly. Complementing this, the magnetic fi eld sensor is designed for micropower applications, with programmable duty cycles in the range of 0.1% to 100%.", - "description_zh": "MLX90396 是来自迈来芯公司的一颗低功耗的3D磁位置传感器", + "description": "The MLX90396 is the newest addition to the Melexis position sensing portfolio", + "description_zh": "MLX90396 是来自迈来芯公司的一颗3D磁力计", "enable": "PKG_USING_MLX90396", "keywords": [ "mlx90396" From 154c4201cd75f5085470d8d94cdefbf8c5567a5e Mon Sep 17 00:00:00 2001 From: lgnq Date: Sat, 25 Oct 2025 18:04:58 +0800 Subject: [PATCH 3/4] Update package.json --- peripherals/sensors/mlx90396/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peripherals/sensors/mlx90396/package.json b/peripherals/sensors/mlx90396/package.json index f257781c41..f78de6386a 100644 --- a/peripherals/sensors/mlx90396/package.json +++ b/peripherals/sensors/mlx90396/package.json @@ -1,6 +1,6 @@ { "name": "mlx90396", - "description": "The MLX90396 is the newest addition to the Melexis position sensing portfolio", + "description": "The MLX90396 is a magnetometer sensor from Melexis", "description_zh": "MLX90396 是来自迈来芯公司的一颗3D磁力计", "enable": "PKG_USING_MLX90396", "keywords": [ From ac5c7e5b7dc918a0b159e58cd875951e0408f130 Mon Sep 17 00:00:00 2001 From: lgnq Date: Sun, 16 Nov 2025 10:11:46 +0800 Subject: [PATCH 4/4] add a package for Melexis MLX90384 --- peripherals/sensors/Kconfig | 1 + peripherals/sensors/mlx90384/Kconfig | 40 +++++++++++++++++++++++ peripherals/sensors/mlx90384/package.json | 28 ++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 peripherals/sensors/mlx90384/Kconfig create mode 100644 peripherals/sensors/mlx90384/package.json diff --git a/peripherals/sensors/Kconfig b/peripherals/sensors/Kconfig index 9e8daec6a6..a8e7d6c964 100755 --- a/peripherals/sensors/Kconfig +++ b/peripherals/sensors/Kconfig @@ -40,6 +40,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/pmsxx/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/rt3020/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90632/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90382/Kconfig" +source "$PKGS_DIR/packages/peripherals/sensors/mlx90384/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90393/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90392/Kconfig" source "$PKGS_DIR/packages/peripherals/sensors/mlx90394/Kconfig" diff --git a/peripherals/sensors/mlx90384/Kconfig b/peripherals/sensors/mlx90384/Kconfig new file mode 100644 index 0000000000..33a8af6208 --- /dev/null +++ b/peripherals/sensors/mlx90384/Kconfig @@ -0,0 +1,40 @@ +# Kconfig file for package mlx90384 +menuconfig PKG_USING_MLX90384 + bool "a mlx90384 package for rt-thread." + default n + +if PKG_USING_MLX90384 + + config PKG_MLX90384_USING_SENSOR_V1 + bool "Enable sensor divce framework" + select RT_USING_SENSOR + default n + + config PKG_MLX90384_PATH + string + default "/packages/peripherals/sensors/mlx90384" + + choice + prompt "Version" + default PKG_USING_MLX90384_LATEST_VERSION + help + Select the package version + + config PKG_USING_MLX90384_V100 + bool "v1.0.0" + + config PKG_USING_MLX90384_LATEST_VERSION + bool "latest" + endchoice + + config PKG_MLX90384_VER + string + default "v1.0.0" if PKG_USING_MLX90384_V100 + default "latest" if PKG_USING_MLX90384_LATEST_VERSION + + config PKG_USING_MLX90384_SAMPLE + bool "Enable mlx90384 sample" + default n + +endif + diff --git a/peripherals/sensors/mlx90384/package.json b/peripherals/sensors/mlx90384/package.json new file mode 100644 index 0000000000..39a4d5cd22 --- /dev/null +++ b/peripherals/sensors/mlx90384/package.json @@ -0,0 +1,28 @@ +{ + "name": "mlx90384", + "description": "The MLX90384 is a high resolution(18 bits) magnetic encoder(Arcminaxis)", + "description_zh": "MLX90384 是来自迈来芯公司的一颗高分辨率(18 Bits)磁编码器", + "enable": "PKG_USING_MLX90384", + "keywords": [ + "mlx90384" + ], + "category": "peripherals/sensors", + "author": { + "name": "lgnq", + "email": "dzzxzz@gmail.com", + "github": "lgnq" + }, + "license": "Apache-2.0", + "repository": "https://github.com/lgnq/mlx90384", + "icon": "unknown", + "homepage": "https://github.com/lgnq/mlx90384", + "doc": "unknown", + "site": [ + { + "version": "latest", + "URL": "https://github.com/lgnq/mlx90384.git", + "filename": "mlx90384.zip", + "VER_SHA": "main" + } + ] +}