Skip to content
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
1 change: 1 addition & 0 deletions drivers/sensor/bosch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_BMA280 bma280)
add_subdirectory_ifdef(CONFIG_BMA400 bma400)
add_subdirectory_ifdef(CONFIG_BMA4XX bma4xx)
add_subdirectory_ifdef(CONFIG_BMC150_MAGN bmc150_magn)
add_subdirectory_ifdef(CONFIG_BME280 bme280)
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/bosch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# zephyr-keep-sorted-start
source "drivers/sensor/bosch/bma280/Kconfig"
source "drivers/sensor/bosch/bma400/Kconfig"
source "drivers/sensor/bosch/bma4xx/Kconfig"
source "drivers/sensor/bosch/bmc150_magn/Kconfig"
source "drivers/sensor/bosch/bme280/Kconfig"
Expand Down
13 changes: 13 additions & 0 deletions drivers/sensor/bosch/bma400/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(
bma400.c
bma400_decoder.c
bma400_rtio.c
)

zephyr_library_sources_ifdef(CONFIG_SPI bma400_spi.c)
zephyr_library_sources_ifdef(CONFIG_BMA400_STREAM bma400_rtio_stream.c)
zephyr_library_sources_ifdef(CONFIG_BMA400_STREAM bma400_interrupt.c)
33 changes: 33 additions & 0 deletions drivers/sensor/bosch/bma400/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# BMA400 3-axis accelerometer config options
#
# Copyright (c) 2026 Luca Gessi
#
# SPDX-License-Identifier: Apache-2.0

menuconfig BMA400
bool "BMA400 3-axis acceleration sensor"
default y
depends on DT_HAS_BOSCH_BMA400_ENABLED
select SENSOR_ASYNC_API
select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMA400),spi)
select SPI_RTIO if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMA400),spi)
help
Driver for Bosch BMA400

if BMA400

config BMA400_STREAM
bool "Stream requests"
depends on GPIO
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMA400),int1-gpios)
help
Use this config option to enable streaming sensor data via RTIO subsystem.

config BMA400_WAKEUP
bool "Auto wakeup and lowpower based on activity detection"
depends on GPIO
depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMA400),int1-gpios)
help
Auto wakeup and auto lowpower based on activity detection.

endif # BMA400
Loading
Loading