1# BMI270 6 Axis IMU configuration 2 3# Copyright (c) 2021 Bosch Sensortec GmbH 4# Copyright (c) 2022 Nordic Semiconductor ASA 5# SPDX-License-Identifier: Apache-2.0 6 7menuconfig BMI270 8 bool "BMI270 Inertial measurement unit" 9 default y 10 depends on DT_HAS_BOSCH_BMI270_ENABLED 11 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),i2c) 12 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),spi) 13 help 14 Enable driver for BMI270 I2C-based imu sensor 15 16if BMI270 17 18config BMI270_BUS_I2C 19 bool 20 default y 21 depends on $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),i2c) 22 23config BMI270_BUS_SPI 24 bool 25 default y 26 depends on $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BMI270),spi) 27 28choice BMI270_TRIGGER_MODE 29 prompt "Trigger mode" 30 help 31 Specify the type of triggering to be used by the driver. 32 33config BMI270_TRIGGER_NONE 34 bool "No trigger" 35 36config BMI270_TRIGGER_GLOBAL_THREAD 37 bool "Use global thread" 38 depends on GPIO 39 select BMI270_TRIGGER 40 41config BMI270_TRIGGER_OWN_THREAD 42 bool "Use own thread" 43 depends on GPIO 44 select BMI270_TRIGGER 45 46endchoice 47 48config BMI270_TRIGGER 49 bool 50 51config BMI270_THREAD_PRIORITY 52 int "Thread priority" 53 depends on BMI270_TRIGGER_OWN_THREAD 54 default 10 55 help 56 Priority of thread used by the driver to handle interrupts. 57 58config BMI270_THREAD_STACK_SIZE 59 int "Thread stack size" 60 depends on BMI270_TRIGGER_OWN_THREAD 61 default 1024 62 help 63 Stack size of thread used by the driver to handle interrupts. 64 65endif # BMI270 66