Skip to content

Commit 083efa2

Browse files
authored
add Melexis MLX90396 package (#1929)
* add Melexis MLX90396 package
1 parent a0876a6 commit 083efa2

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

peripherals/sensors/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ source "$PKGS_DIR/packages/peripherals/sensors/mlx90382/Kconfig"
4343
source "$PKGS_DIR/packages/peripherals/sensors/mlx90393/Kconfig"
4444
source "$PKGS_DIR/packages/peripherals/sensors/mlx90392/Kconfig"
4545
source "$PKGS_DIR/packages/peripherals/sensors/mlx90394/Kconfig"
46+
source "$PKGS_DIR/packages/peripherals/sensors/mlx90396/Kconfig"
4647
source "$PKGS_DIR/packages/peripherals/sensors/mlx90397/Kconfig"
4748
source "$PKGS_DIR/packages/peripherals/sensors/ms5611/Kconfig"
4849
source "$PKGS_DIR/packages/peripherals/sensors/max31865/Kconfig"
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
2+
# Kconfig file for package mlx90396
3+
menuconfig PKG_USING_MLX90396
4+
bool "MLX90396: 3D magnetometer sensor"
5+
default n
6+
7+
if PKG_USING_MLX90396
8+
9+
config PKG_MLX90396_PATH
10+
string
11+
default "/packages/peripherals/sensors/mlx90396"
12+
13+
config PKG_MLX90396_USING_SENSOR_V1
14+
bool "Enable sensor_v1 device framework"
15+
select RT_USING_SENSOR
16+
default n
17+
18+
config PKG_USING_MLX90396_SAMPLE
19+
bool "Enable MLX90396 Sample"
20+
default n
21+
22+
choice
23+
prompt "Version"
24+
default PKG_USING_MLX90396_LATEST_VERSION
25+
help
26+
Select the package version
27+
28+
config PKG_USING_MLX90396_V100
29+
bool "v1.0.0"
30+
31+
config PKG_USING_MLX90396_LATEST_VERSION
32+
bool "latest"
33+
endchoice
34+
35+
config PKG_MLX90396_VER
36+
string
37+
default "v1.0.0" if PKG_USING_MLX90396_V100
38+
default "latest" if PKG_USING_MLX90396_LATEST_VERSION
39+
40+
endif
41+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "mlx90396",
3+
"description": "The MLX90396 is a magnetometer sensor from Melexis",
4+
"description_zh": "MLX90396 是来自迈来芯公司的一颗3D磁力计",
5+
"enable": "PKG_USING_MLX90396",
6+
"keywords": [
7+
"mlx90396"
8+
],
9+
"category": "peripherals/sensors",
10+
"author": {
11+
"name": "lgnq",
12+
"email": "[email protected]",
13+
"github": "lgnq"
14+
},
15+
"license": "Apache-2.0",
16+
"repository": "https://github.com/lgnq/mlx90396",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/lgnq/mlx90396`",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "latest",
23+
"URL": "https://github.com/lgnq/mlx90396.git",
24+
"filename": "mlx90396.zip",
25+
"VER_SHA": "main"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)