Skip to content

Commit eca0e7f

Browse files
committed
[nrf fromlist] drivers: sensor: add Bosch BMM350 magnetometer driver
Add driver for Bosch BMM350 magnetometer sensor. Upstream PR #: 85174 Signed-off-by: Maximilian Deubel <maximilian.deubel@nordicsemi.no>
1 parent e109db3 commit eca0e7f

13 files changed

+1716
-0
lines changed

drivers/sensor/bosch/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_subdirectory_ifdef(CONFIG_BMI160 bmi160)
1313
add_subdirectory_ifdef(CONFIG_BMI270 bmi270)
1414
add_subdirectory_ifdef(CONFIG_BMI323 bmi323)
1515
add_subdirectory_ifdef(CONFIG_BMM150 bmm150)
16+
add_subdirectory_ifdef(CONFIG_BMM350 bmm350)
1617
add_subdirectory_ifdef(CONFIG_BMP180 bmp180)
1718
add_subdirectory_ifdef(CONFIG_BMP388 bmp388)
1819
add_subdirectory_ifdef(CONFIG_BMP581 bmp581)

drivers/sensor/bosch/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ source "drivers/sensor/bosch/bmi160/Kconfig"
1313
source "drivers/sensor/bosch/bmi270/Kconfig"
1414
source "drivers/sensor/bosch/bmi323/Kconfig"
1515
source "drivers/sensor/bosch/bmm150/Kconfig"
16+
source "drivers/sensor/bosch/bmm350/Kconfig"
1617
source "drivers/sensor/bosch/bmp180/Kconfig"
1718
source "drivers/sensor/bosch/bmp388/Kconfig"
1819
source "drivers/sensor/bosch/bmp581/Kconfig"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2024 Bosch Sensortec GmbH
2+
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
zephyr_library()
6+
zephyr_library_sources(bmm350.c bmm350_i2c.c)
7+
zephyr_library_sources_ifdef(CONFIG_BMM350_TRIGGER bmm350_trigger.c)

drivers/sensor/bosch/bmm350/Kconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# BMM350 Geomagnetic sensor configuration options
2+
3+
# Copyright (c) 2024 Bosch Sensortec GmbH
4+
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
menuconfig BMM350
8+
bool "BMM350 I2C Geomagnetic Chip"
9+
default y
10+
depends on DT_HAS_BOSCH_BMM350_ENABLED
11+
select I2C
12+
help
13+
Enable driver for BMM350 I2C-based Geomagnetic sensor.
14+
15+
if BMM350
16+
17+
module = BMM350
18+
thread_priority = 10
19+
thread_stack_size = 1024
20+
source "drivers/sensor/Kconfig.trigger_template"
21+
22+
endif # BMM350

0 commit comments

Comments
 (0)