Skip to content

Commit

Permalink
drivers: sensor: mlx90394: added driver
Browse files Browse the repository at this point in the history
Added driver for Melexis MLX90394 magnetometer.

Signed-off-by: Florian Weber <[email protected]>
  • Loading branch information
FlorianWeber1018 committed Oct 24, 2024
1 parent 1689eaf commit 4fffe4e
Show file tree
Hide file tree
Showing 13 changed files with 1,150 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ add_subdirectory(ite)
add_subdirectory(jedec)
add_subdirectory(maxim)
add_subdirectory(meas)
add_subdirectory(melexis)
add_subdirectory(memsic)
add_subdirectory(microchip)
add_subdirectory(nordic)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ source "drivers/sensor/ite/Kconfig"
source "drivers/sensor/jedec/Kconfig"
source "drivers/sensor/maxim/Kconfig"
source "drivers/sensor/meas/Kconfig"
source "drivers/sensor/melexis/Kconfig"
source "drivers/sensor/memsic/Kconfig"
source "drivers/sensor/microchip/Kconfig"
source "drivers/sensor/nordic/Kconfig"
Expand Down
6 changes: 6 additions & 0 deletions drivers/sensor/melexis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Florian Weber <[email protected]>
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_MLX90394 MLX90394)
# zephyr-keep-sorted-stop
6 changes: 6 additions & 0 deletions drivers/sensor/melexis/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2024 Florian Weber <[email protected]>
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
source "drivers/sensor/melexis/MLX90394/Kconfig"
# zephyr-keep-sorted-stop
7 changes: 7 additions & 0 deletions drivers/sensor/melexis/MLX90394/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) Florian Weber <[email protected]>
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(mlx90394.c)
zephyr_library_sources_ifdef(CONFIG_SENSOR_ASYNC_API mlx90394_async.c mlx90394_decoder.c)
11 changes: 11 additions & 0 deletions drivers/sensor/melexis/MLX90394/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2024 Florian Weber <[email protected]>
# SPDX-License-Identifier: Apache-2.0


config MLX90394
bool "MLX90394 Magnetometer"
default y
depends on DT_HAS_MELEXIS_MLX90394_ENABLED
select I2C
help
Enable driver for MLX90394 magnetometer.
Loading

0 comments on commit 4fffe4e

Please sign in to comment.