Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions peripherals/sensors/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
41 changes: 41 additions & 0 deletions peripherals/sensors/mlx90396/Kconfig
Original file line number Diff line number Diff line change
@@ -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

28 changes: 28 additions & 0 deletions peripherals/sensors/mlx90396/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
]
}