Kconfig: split sensors
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
committed by
KevinOConnor
parent
b7233d1197
commit
1499bfa489
37
src/Kconfig
37
src/Kconfig
@@ -96,9 +96,21 @@ config WANT_DISPLAYS
|
||||
bool
|
||||
depends on HAVE_GPIO
|
||||
default y
|
||||
config WANT_SENSORS
|
||||
config WANT_THERMOCOUPLE
|
||||
bool
|
||||
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SENSOR_ADXL345
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SENSOR_ANGLE
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SENSOR_MPU9250
|
||||
bool
|
||||
depends on HAVE_GPIO_I2C
|
||||
default y
|
||||
config WANT_LIS2DW
|
||||
bool
|
||||
@@ -126,8 +138,10 @@ config WANT_SOFTWARE_SPI
|
||||
default y
|
||||
config NEED_SENSOR_BULK
|
||||
bool
|
||||
depends on WANT_SENSORS || WANT_LIS2DW || WANT_LDC1612 || WANT_HX71X \
|
||||
|| WANT_ADS1220
|
||||
depends on WANT_LIS2DW || WANT_LDC1612 || WANT_HX71X \
|
||||
|| WANT_ADS1220 || WANT_THERMOCOUPLE \
|
||||
|| WANT_SENSOR_ADXL345 || WANT_SENSOR_ANGLE \
|
||||
|| WANT_SENSOR_MPU9250
|
||||
default y
|
||||
menu "Optional features (to reduce code size)"
|
||||
depends on HAVE_LIMITED_CODE_SIZE
|
||||
@@ -137,9 +151,18 @@ config WANT_GPIO_BITBANGING
|
||||
config WANT_DISPLAYS
|
||||
bool "Support LCD devices"
|
||||
depends on HAVE_GPIO
|
||||
config WANT_SENSORS
|
||||
bool "Support external sensor devices"
|
||||
depends on HAVE_GPIO_I2C || HAVE_GPIO_SPI
|
||||
config WANT_THERMOCOUPLE
|
||||
bool "Support thermocouple MAX sensors"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SENSOR_ADXL345
|
||||
bool "Support adxl accelerometers"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SENSOR_ANGLE
|
||||
bool "Support angle sensors"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SENSOR_MPU9250
|
||||
bool "Support MPU accelerometers"
|
||||
depends on HAVE_GPIO_I2C
|
||||
config WANT_LIS2DW
|
||||
bool "Support lis2dw and lis3dh 3-axis accelerometers"
|
||||
depends on HAVE_GPIO_SPI || HAVE_GPIO_I2C
|
||||
|
||||
Reference in New Issue
Block a user