1# LSM9DS0 gyroscope sensor configuration options 2 3# Copyright (c) 2016 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig LSM9DS0_GYRO 7 bool "LSM9DS0 I2C gyroscope Chip" 8 default y 9 depends on DT_HAS_ST_LSM9DS0_GYRO_ENABLED 10 select I2C 11 help 12 Enable driver for LSM9DS0 I2C-based gyroscope sensor. 13 14if LSM9DS0_GYRO 15 16menu "Attributes" 17 18choice 19 prompt "Default full-scale" 20 default LSM9DS0_GYRO_FULLSCALE_245 21 help 22 Specify the default full-scale. 23 24config LSM9DS0_GYRO_FULLSCALE_245 25 bool "245 DPS" 26 27config LSM9DS0_GYRO_FULLSCALE_500 28 bool "500 DPS" 29 30config LSM9DS0_GYRO_FULLSCALE_2000 31 bool "2000 DPS" 32 33endchoice 34 35config LSM9DS0_GYRO_FULLSCALE_RUNTIME 36 bool "Dynamic full-scale" 37 help 38 Enable alteration of full-scale attribute at runtime. 39 40choice 41 prompt "Default sampling rate frequency" 42 default LSM9DS0_GYRO_SAMPLING_RATE_95 43 help 44 Specify the default sampling rate frequency. 45 46config LSM9DS0_GYRO_SAMPLING_RATE_95 47 bool "95 Hz" 48 49config LSM9DS0_GYRO_SAMPLING_RATE_190 50 bool "190 Hz" 51 52config LSM9DS0_GYRO_SAMPLING_RATE_380 53 bool "380 Hz" 54 55config LSM9DS0_GYRO_SAMPLING_RATE_760 56 bool "760 Hz" 57 58endchoice 59 60config LSM9DS0_GYRO_SAMPLING_RATE_RUNTIME 61 bool "Dynamic sampling rate" 62 help 63 Enable alteration of sampling rate frequency at runtime. 64 65endmenu 66 67config LSM9DS0_GYRO_TRIGGERS 68 bool "Triggers" 69 depends on GPIO 70 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_LSM9DS0_GYRO),irq-gpios) 71 72config LSM9DS0_GYRO_THREAD_STACK_SIZE 73 int "Thread stack size" 74 depends on LSM9DS0_GYRO_TRIGGERS 75 default 1024 76 help 77 Specify the internal thread stack size. 78 79config LSM9DS0_GYRO_TRIGGER_DRDY 80 bool "Data ready trigger" 81 depends on LSM9DS0_GYRO_TRIGGERS 82 83endif # LSM9DS0_GYRO 84