1# LSM6DSL accelerometer and gyroscope sensor configuration 2# options 3 4# Copyright (c) 2017 Linaro Limited 5# SPDX-License-Identifier: Apache-2.0 6 7menuconfig LSM6DSL 8 bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip" 9 depends on I2C || SPI 10 help 11 Enable driver for LSM6DSL accelerometer and gyroscope 12 sensor. 13 14if LSM6DSL 15 16choice LSM6DSL_TRIGGER_MODE 17 prompt "Trigger mode" 18 help 19 Specify the type of triggering to be used by the driver. 20 21config LSM6DSL_TRIGGER_NONE 22 bool "No trigger" 23 24config LSM6DSL_TRIGGER_GLOBAL_THREAD 25 bool "Use global thread" 26 depends on GPIO 27 select LSM6DSL_TRIGGER 28 29config LSM6DSL_TRIGGER_OWN_THREAD 30 bool "Use own thread" 31 depends on GPIO 32 select LSM6DSL_TRIGGER 33 34endchoice 35 36config LSM6DSL_TRIGGER 37 bool 38 39config LSM6DSL_THREAD_PRIORITY 40 int "Thread priority" 41 depends on LSM6DSL_TRIGGER_OWN_THREAD 42 default 10 43 help 44 Priority of thread used by the driver to handle interrupts. 45 46config LSM6DSL_THREAD_STACK_SIZE 47 int "Thread stack size" 48 depends on LSM6DSL_TRIGGER_OWN_THREAD 49 default 1024 50 help 51 Stack size of thread used by the driver to handle interrupts. 52 53config LSM6DSL_ENABLE_TEMP 54 bool "Enable temperature" 55 help 56 Enable/disable temperature 57 58config LSM6DSL_SENSORHUB 59 bool "Enable I2C sensorhub feature" 60 help 61 Enable/disable internal sensorhub 62 63choice LSM6DSL_EXTERNAL_SENSOR_0 64 prompt "External sensor 0" 65 depends on LSM6DSL_SENSORHUB 66 help 67 Choose the external sensor 0 connected to LSM6DS3. 68 69config LSM6DSL_EXT0_LIS2MDL 70 bool "LIS2MDL" 71 72config LSM6DSL_EXT0_LPS22HB 73 bool "LPS22HB" 74 75endchoice 76 77menu "Attributes" 78 79config LSM6DSL_GYRO_FS 80 int "Gyroscope full-scale range" 81 default 0 82 help 83 Specify the default gyroscope full-scale range. 84 An X value for the config represents a range of +/- X degree per 85 second. Valid values are: 86 0: Full Scale selected at runtime 87 125: +/- 125dps 88 245: +/- 245dps 89 500: +/- 500dps 90 1000: +/- 1000dps 91 2000: +/- 2000dps 92 93config LSM6DSL_GYRO_ODR 94 int "Gyroscope Output data rate frequency" 95 range 0 10 96 default 0 97 help 98 Specify the default accelerometer output data rate expressed in 99 samples per second (Hz). 100 0: ODR selected at runtime 101 1: 12.5Hz 102 2: 26Hz 103 3: 52Hz 104 4: 104Hz 105 5: 208Hz 106 6: 416Hz 107 7: 833Hz 108 8: 1660Hz 109 9: 3330Hz 110 10: 6660Hz 111 112config LSM6DSL_ACCEL_FS 113 int "Accelerometer full-scale range" 114 default 0 115 help 116 Specify the default accelerometer full-scale range. 117 An X value for the config represents a range of +/- X G. Valid values 118 are: 119 0: Full Scale selected at runtime 120 2: +/- 2g 121 4: +/- 4g 122 8: +/- 8g 123 16: +/- 16g 124 125config LSM6DSL_ACCEL_ODR 126 int "Accelerometer Output data rate frequency" 127 range 0 10 128 default 0 129 help 130 Specify the default accelerometer output data rate expressed in 131 samples per second (Hz). 132 0: ODR selected at runtime 133 1: 12.5Hz 134 2: 26Hz 135 3: 52Hz 136 4: 104Hz 137 5: 208Hz 138 6: 416Hz 139 7: 833Hz 140 8: 1660Hz 141 9: 3330Hz 142 10: 6660Hz 143endmenu 144 145endif # LSM6DSL 146