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 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMI270),irq-gpios) 40 select BMI270_TRIGGER 41 42config BMI270_TRIGGER_OWN_THREAD 43 bool "Use own thread" 44 depends on GPIO 45 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMI270),irq-gpios) 46 select BMI270_TRIGGER 47 48endchoice 49 50config BMI270_TRIGGER 51 bool 52 53config BMI270_THREAD_PRIORITY 54 int "Thread priority" 55 depends on BMI270_TRIGGER_OWN_THREAD 56 default 10 57 help 58 Priority of thread used by the driver to handle interrupts. 59 60config BMI270_THREAD_STACK_SIZE 61 int "Thread stack size" 62 depends on BMI270_TRIGGER_OWN_THREAD 63 default 1024 64 help 65 Stack size of thread used by the driver to handle interrupts. 66 67endif # BMI270 68