mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
82 lines
2.0 KiB
Plaintext
82 lines
2.0 KiB
Plaintext
# Copyright (c) 2020 HAW Hamburg
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
# directory for more details.
|
|
#
|
|
|
|
menuconfig MODULE_BMX280
|
|
bool
|
|
prompt "BMx280 Temperature, pressure and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_BMX280)
|
|
default (MODULE_SAUL_DEFAULT && HAVE_BMX280)
|
|
depends on TEST_KCONFIG
|
|
|
|
if MODULE_BMX280
|
|
|
|
choice BMX280_VARIANT
|
|
bool "Model"
|
|
default MODULE_BME280_I2C if HAVE_BME280_I2C
|
|
default MODULE_BME280_SPI if HAVE_BME280_SPI
|
|
default MODULE_BMP280_I2C if HAVE_BMP280_I2C
|
|
default MODULE_BMP280_SPI if HAVE_BMP280_SPI
|
|
help
|
|
The driver supports both BME280 and BMP280 connected either via SPI or
|
|
I2C bus. Select one combination.
|
|
|
|
config MODULE_BME280_I2C
|
|
bool "BME280 on I2C"
|
|
depends on HAS_PERIPH_I2C
|
|
select MODULE_PERIPH_I2C
|
|
|
|
config MODULE_BME280_SPI
|
|
bool "BME280 on SPI"
|
|
depends on HAS_PERIPH_SPI
|
|
depends on HAS_PERIPH_GPIO
|
|
select MODULE_PERIPH_SPI
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
config MODULE_BMP280_I2C
|
|
bool "BMP280 on I2C"
|
|
depends on HAS_PERIPH_I2C
|
|
select MODULE_PERIPH_I2C
|
|
|
|
config MODULE_BMP280_SPI
|
|
bool "BMP280 on SPI"
|
|
depends on HAS_PERIPH_SPI
|
|
depends on HAS_PERIPH_GPIO
|
|
select MODULE_PERIPH_SPI
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
endchoice
|
|
|
|
endif # MODULE_BMX280
|
|
|
|
config HAVE_BMX280
|
|
bool
|
|
help
|
|
Indicates that a bmx280 sensor is present.
|
|
|
|
config HAVE_BME280_I2C
|
|
bool
|
|
select HAVE_BMX280
|
|
help
|
|
Indicates that a bme280 sensor on the I2C bus is present.
|
|
|
|
config HAVE_BME280_SPI
|
|
bool
|
|
select HAVE_BMX280
|
|
help
|
|
Indicates that a bme280 sensor on the SPI bus is present.
|
|
|
|
config HAVE_BMP280_I2C
|
|
bool
|
|
select HAVE_BMX280
|
|
help
|
|
Indicates that a bmp280 sensor on the I2C bus is present.
|
|
|
|
config HAVE_BMP280_SPI
|
|
bool
|
|
select HAVE_BMX280
|
|
help
|
|
Indicates that a bmp280 sensor on the SPI bus is present.
|