zephyr/drivers/sensor/lsm6dsl/Kconfig
Ulf Magnusson 975de21858 kconfig: Global whitespace/consistency cleanup
Clean up space errors and use a consistent style throughout the Kconfig
files. This makes reading the Kconfig files more distraction-free, helps
with grepping, and encourages the same style getting copied around
everywhere (meaning another pass hopefully won't be needed).

Go for the most common style:

 - Indent properties with a single tab, including for choices.

   Properties on choices work exactly the same syntactically as
   properties on symbols, so not sure how the no-indentation thing
   happened.

 - Indent help texts with a tab followed by two spaces

 - Put a space between 'config' and the symbol name, not a tab. This
   also helps when grepping for definitions.

 - Do '# A comment' instead of '#A comment'

I tweaked Kconfiglib a bit to find most of the stuff.

Some help texts were reflowed to 79 columns with 'gq' in Vim as well,
though not all, because I was afraid I'd accidentally mess up
formatting.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-11-01 15:53:23 +01:00

151 lines
3 KiB
Text

# Kconfig - LSM6DSL accelerometer and gyroscope sensor configuration
# options
#
# Copyright (c) 2017 Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig LSM6DSL
bool "LSM6DSL I2C/SPI accelerometer and gyroscope Chip"
depends on (I2C && HAS_DTS_I2C) || SPI
help
Enable driver for LSM6DSL accelerometer and gyroscope
sensor.
if LSM6DSL
choice LSM6DSL_TRIGGER_MODE
prompt "Trigger mode"
help
Specify the type of triggering to be used by the driver.
config LSM6DSL_TRIGGER_NONE
bool "No trigger"
config LSM6DSL_TRIGGER_GLOBAL_THREAD
bool "Use global thread"
depends on GPIO
select LSM6DSL_TRIGGER
config LSM6DSL_TRIGGER_OWN_THREAD
bool "Use own thread"
depends on GPIO
select LSM6DSL_TRIGGER
endchoice
config LSM6DSL_TRIGGER
bool
config LSM6DSL_THREAD_PRIORITY
int "Thread priority"
depends on LSM6DSL_TRIGGER_OWN_THREAD
default 10
help
Priority of thread used by the driver to handle interrupts.
config LSM6DSL_THREAD_STACK_SIZE
int "Thread stack size"
depends on LSM6DSL_TRIGGER_OWN_THREAD
default 1024
help
Stack size of thread used by the driver to handle interrupts.
config LSM6DSL_ENABLE_TEMP
bool "Enable temperature"
help
Enable/disable temperature
config LSM6DSL_SENSORHUB
bool "Enable I2C sensorhub feature"
help
Enable/disable internal sensorhub
if LSM6DSL_SENSORHUB
choice LSM6DSL_EXTERNAL_SENSOR_0
prompt "External sensor 0"
help
Choose the external sensor 0 connected to LSM6DS3.
config LSM6DSL_EXT0_LIS2MDL
bool "LIS2MDL"
config LSM6DSL_EXT0_LPS22HB
bool "LPS22HB"
endchoice
endif # LSM6DSL_SENSORHUB
menu "Attributes"
config LSM6DSL_GYRO_FS
int "Gyroscope full-scale range"
default 0
help
Specify the default gyroscope full-scale range.
An X value for the config represents a range of +/- X degree per
second. Valid values are:
0: Full Scale selected at runtime
125: +/- 125dps
245: +/- 245dps
500: +/- 500dps
1000: +/- 1000dps
2000: +/- 2000dps
config LSM6DSL_GYRO_ODR
int "Gyroscope Output data rate frequency"
range 0 10
default 0
help
Specify the default accelerometer output data rate expressed in
samples per second (Hz).
0: ODR selected at runtime
1: 12.5Hz
2: 26Hz
3: 52Hz
4: 104Hz
5: 208Hz
6: 416Hz
7: 833Hz
8: 1660Hz
9: 3330Hz
10: 6660Hz
config LSM6DSL_ACCEL_FS
int "Accelerometer full-scale range"
default 0
help
Specify the default accelerometer full-scale range.
An X value for the config represents a range of +/- X G. Valid values
are:
0: Full Scale selected at runtime
2: +/- 2g
4: +/- 4g
8: +/- 8g
16: +/- 16g
config LSM6DSL_ACCEL_ODR
int "Accelerometer Output data rate frequency"
range 0 10
default 0
help
Specify the default accelerometer output data rate expressed in
samples per second (Hz).
0: ODR selected at runtime
1: 12.5Hz
2: 26Hz
3: 52Hz
4: 104Hz
5: 208Hz
6: 416Hz
7: 833Hz
8: 1660Hz
9: 3330Hz
10: 6660Hz
endmenu
endif # LSM6DSL