drivers/sensors/Kconfig: Added if SENSORS_BME680 for common dependency

sensor BME680: Added if SENSORS_BME680
This commit is contained in:
simbit18 2024-04-29 16:01:56 +02:00 committed by Xiang Xiao
parent 0db7417dc0
commit 7e30d38558

View File

@ -384,35 +384,32 @@ config SENSORS_BME680
---help--- ---help---
Enable driver for the Bosch BME680 sensor. Enable driver for the Bosch BME680 sensor.
if SENSORS_BME680
config BME680_I2C_FREQUENCY config BME680_I2C_FREQUENCY
int "BME680 I2C frequency" int "BME680 I2C frequency"
depends on SENSORS_BME680
default 400000 default 400000
config BME680_DISABLE_PRESS_MEAS config BME680_DISABLE_PRESS_MEAS
bool "Disable Pressure Measurement" bool "Disable Pressure Measurement"
depends on SENSORS_BME680
default n default n
---help--- ---help---
If enabled, the sensor will not measure pressure. If enabled, the sensor will not measure pressure.
config BME680_DISABLE_HUM_MEAS config BME680_DISABLE_HUM_MEAS
bool "Disable Humidity Measurement" bool "Disable Humidity Measurement"
depends on SENSORS_BME680
default n default n
---help--- ---help---
If enabled, the sensor will not measure humidity. If enabled, the sensor will not measure humidity.
config BME680_DISABLE_GAS_MEAS config BME680_DISABLE_GAS_MEAS
bool "Disable Gas Measurement" bool "Disable Gas Measurement"
depends on SENSORS_BME680
default n default n
---help--- ---help---
If enabled, the sensor will not measure gas. If enabled, the sensor will not measure gas.
config BME680_ENABLE_IIR_FILTER config BME680_ENABLE_IIR_FILTER
bool "Enable IIR Filter" bool "Enable IIR Filter"
depends on SENSORS_BME680
default n default n
---help--- ---help---
Enable IIR filtering for temperature and pressure Enable IIR filtering for temperature and pressure
@ -420,7 +417,6 @@ config BME680_ENABLE_IIR_FILTER
config SENSORS_BME680_POLL_INTERVAL config SENSORS_BME680_POLL_INTERVAL
int "Polling interval in microseconds, default 3 sec" int "Polling interval in microseconds, default 3 sec"
depends on SENSORS_BME680
default 3000000 default 3000000
range 0 4294967295 range 0 4294967295
---help--- ---help---
@ -428,11 +424,12 @@ config SENSORS_BME680_POLL_INTERVAL
config SENSORS_BME680_THREAD_STACKSIZE config SENSORS_BME680_THREAD_STACKSIZE
int "Worker thread stack size" int "Worker thread stack size"
depends on SENSORS_BME680
default 1024 default 1024
---help--- ---help---
The stack size for the worker thread. The stack size for the worker thread.
endif # SENSORS_BME680
config SENSORS_DHTXX config SENSORS_DHTXX
bool "DHTxx humidity/temperature Sensor support" bool "DHTxx humidity/temperature Sensor support"
default n default n