Kconfig: Simplify WANT_XXX definitions
Use WANT_ADXL345 and WANT_MPU9250 instead of WANT_SENSOR_ADXL345 and WANT_SENSOR_MPU9250. This makes these definitions similar to the other accelerometer defintions. Order menu so accelerometers are close to each other in the menu. Simplify Makefile as Kconfig already assures a symbol will only be defined if its dependencies are met. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
44
src/Kconfig
44
src/Kconfig
@@ -100,23 +100,15 @@ config WANT_THERMOCOUPLE
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SENSOR_ADXL345
|
||||
config WANT_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
|
||||
depends on HAVE_GPIO_SPI || HAVE_GPIO_I2C
|
||||
default y
|
||||
config WANT_LDC1612
|
||||
config WANT_MPU9250
|
||||
bool
|
||||
depends on HAVE_GPIO_I2C
|
||||
default y
|
||||
@@ -128,6 +120,14 @@ config WANT_ADS1220
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_LDC1612
|
||||
bool
|
||||
depends on HAVE_GPIO_I2C
|
||||
default y
|
||||
config WANT_SENSOR_ANGLE
|
||||
bool
|
||||
depends on HAVE_GPIO_SPI
|
||||
default y
|
||||
config WANT_SOFTWARE_I2C
|
||||
bool
|
||||
depends on HAVE_GPIO && HAVE_GPIO_I2C
|
||||
@@ -138,10 +138,8 @@ config WANT_SOFTWARE_SPI
|
||||
default y
|
||||
config NEED_SENSOR_BULK
|
||||
bool
|
||||
depends on WANT_LIS2DW || WANT_LDC1612 || WANT_HX71X \
|
||||
|| WANT_ADS1220 || WANT_THERMOCOUPLE \
|
||||
|| WANT_SENSOR_ADXL345 || WANT_SENSOR_ANGLE \
|
||||
|| WANT_SENSOR_MPU9250
|
||||
depends on WANT_ADXL345 || WANT_LIS2DW || WANT_MPU9250 \
|
||||
|| WANT_HX71X || WANT_ADS1220 || WANT_LDC1612 || WANT_SENSOR_ANGLE
|
||||
default y
|
||||
menu "Optional features (to reduce code size)"
|
||||
depends on HAVE_LIMITED_CODE_SIZE
|
||||
@@ -154,20 +152,14 @@ config WANT_DISPLAYS
|
||||
config WANT_THERMOCOUPLE
|
||||
bool "Support thermocouple MAX sensors"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SENSOR_ADXL345
|
||||
config WANT_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
|
||||
config WANT_LDC1612
|
||||
bool "Support ldc1612 eddy current sensor"
|
||||
config WANT_MPU9250
|
||||
bool "Support MPU accelerometers"
|
||||
depends on HAVE_GPIO_I2C
|
||||
config WANT_HX71X
|
||||
bool "Support HX711 and HX717 ADC chips"
|
||||
@@ -175,6 +167,12 @@ config WANT_HX71X
|
||||
config WANT_ADS1220
|
||||
bool "Support ADS 1220 ADC chip"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_LDC1612
|
||||
bool "Support ldc1612 eddy current sensor"
|
||||
depends on HAVE_GPIO_I2C
|
||||
config WANT_SENSOR_ANGLE
|
||||
bool "Support angle sensors"
|
||||
depends on HAVE_GPIO_SPI
|
||||
config WANT_SOFTWARE_I2C
|
||||
bool "Support software based I2C \"bit-banging\""
|
||||
depends on HAVE_GPIO && HAVE_GPIO_I2C
|
||||
|
||||
Reference in New Issue
Block a user