1# BME680 temperature, pressure, humidity and gas sensor configuration options 2 3# Copyright (c) 2018 Bosch Sensortec GmbH 4# Copyright (c) 2022, Leonard Pollak 5# 6# SPDX-License-Identifier: Apache-2.0 7 8menuconfig BME680 9 bool "BME680 sensor" 10 default y 11 depends on DT_HAS_BOSCH_BME680_ENABLED 12 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME680),i2c) 13 select SPI if $(dt_compat_on_bus,$(DT_COMPAT_BOSCH_BME680),spi) 14 help 15 Enable driver for BME680 I2C- or SPI- based temperature, pressure, humidity and gas sensor. 16 17if BME680 18 19choice 20 prompt "BME680 temperature oversampling" 21 default BME680_TEMP_OVER_2X 22 help 23 Select temperature oversampling for the BME680 sensor. Higher values 24 lead to more accurate readings, but higher power consumption. 25config BME680_TEMP_OVER_1X 26 bool "x1" 27config BME680_TEMP_OVER_2X 28 bool "x2" 29config BME680_TEMP_OVER_4X 30 bool "x4" 31config BME680_TEMP_OVER_8X 32 bool "x8" 33config BME680_TEMP_OVER_16X 34 bool "x16" 35endchoice 36 37choice 38 prompt "BME680 pressure oversampling" 39 default BME680_PRESS_OVER_16X 40 help 41 Select pressure oversampling for the BME680 sensor. Higher values 42 lead to more accurate readings, but higher power consumption. 43config BME680_PRESS_OVER_1X 44 bool "x1" 45config BME680_PRESS_OVER_2X 46 bool "x2" 47config BME680_PRESS_OVER_4X 48 bool "x4" 49config BME680_PRESS_OVER_8X 50 bool "x8" 51config BME680_PRESS_OVER_16X 52 bool "x16" 53endchoice 54 55choice 56 prompt "BME680 humidity oversampling" 57 default BME680_HUMIDITY_OVER_1X 58 help 59 Select humidity oversampling for the BME680 sensor. Higher values 60 lead to more accurate readings, but higher power consumption. 61config BME680_HUMIDITY_OVER_1X 62 bool "x1" 63config BME680_HUMIDITY_OVER_2X 64 bool "x2" 65config BME680_HUMIDITY_OVER_4X 66 bool "x4" 67config BME680_HUMIDITY_OVER_8X 68 bool "x8" 69config BME680_HUMIDITY_OVER_16X 70 bool "x16" 71endchoice 72 73choice 74 prompt "BME680 IIR low-pass filter coefficient" 75 default BME680_FILTER_OFF 76 help 77 Select the filter coefficient for the BME680 sensor. 78config BME680_FILTER_OFF 79 bool "filter off" 80config BME680_FILTER_2 81 bool "2" 82config BME680_FILTER_4 83 bool "4" 84config BME680_FILTER_8 85 bool "8" 86config BME680_FILTER_16 87 bool "16" 88config BME680_FILTER_32 89 bool "32" 90config BME680_FILTER_64 91 bool "64" 92config BME680_FILTER_128 93 bool "128" 94endchoice 95 96choice 97 prompt "BME680 gas sensor's heater temperature in degree Celsius" 98 default BME680_HEATR_TEMP_LP 99 help 100 Select the gas sensor's heater temperature for the BME680 sensor. 101config BME680_HEATR_TEMP_LP 102 bool "320" 103config BME680_HEATR_TEMP_ULP 104 bool "400" 105endchoice 106 107choice 108 prompt "BME680 gas sensor's heating duration in milliseconds" 109 default BME680_HEATR_DUR_LP 110 help 111 Select the gas sensor's heating duration for the BME680 sensor. 112config BME680_HEATR_DUR_LP 113 bool "197" 114config BME680_HEATR_DUR_ULP 115 bool "1943" 116endchoice 117 118endif # BME680 119