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..f78de6386a --- /dev/null +++ b/peripherals/sensors/mlx90396/package.json @@ -0,0 +1,28 @@ +{ + "name": "mlx90396", + "description": "The MLX90396 is a magnetometer sensor from Melexis", + "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" + } + ] +}