Skip to content

bmm350: Add Streaming and Read-Decode support #93048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
7 changes: 6 additions & 1 deletion drivers/sensor/bosch/bmm350/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()
zephyr_library_sources(bmm350.c bmm350_i2c.c)
zephyr_library_sources(
bmm350.c
bmm350_bus.c
bmm350_decoder.c
)
zephyr_library_sources_ifdef(CONFIG_BMM350_TRIGGER bmm350_trigger.c)
zephyr_library_sources_ifdef(CONFIG_BMM350_STREAM bmm350_stream.c)
9 changes: 9 additions & 0 deletions drivers/sensor/bosch/bmm350/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ menuconfig BMM350
default y
depends on DT_HAS_BOSCH_BMM350_ENABLED
select I2C
select I2C_RTIO
help
Enable driver for BMM350 I2C-based Geomagnetic sensor.

Expand All @@ -19,4 +20,12 @@ thread_priority = 10
thread_stack_size = 1024
source "drivers/sensor/Kconfig.trigger_template"

config BMM350_STREAM
bool "Streaming mode"
default y
depends on SENSOR_ASYNC_API
depends on GPIO
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMM350),drdy-gpios)
depends on !BMM350_TRIGGER

endif # BMM350
Loading