1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/drivers/bmx280/Kconfig

72 lines
1.8 KiB
Plaintext
Raw Normal View History

2020-11-17 11:07:52 +01:00
# 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.
#
2021-11-12 14:57:37 +01:00
menuconfig MODULE_BMX280
2020-11-17 11:07:52 +01:00
bool "BMx280 Temperature, pressure and humidity sensors"
depends on TEST_KCONFIG
2020-11-17 11:07:52 +01:00
help
The driver supports both BME280 and BMP280 connected either via SPI or
I2C bus. Select one combination.
2021-11-12 14:57:37 +01:00
choice
bool "Sensor variant"
depends on MODULE_BMX280
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
2020-11-17 11:07:52 +01:00
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
2021-11-12 14:57:37 +01:00
config HAVE_BME280_I2C
2020-11-17 11:07:52 +01:00
bool
2021-11-12 14:57:37 +01:00
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
help
Indicates that a bme280 is present on the I2C bus.
config HAVE_BME280_SPI
bool
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
help
Indicates that a bme280 is present on the SPI bus.
config HAVE_BMP280_I2C
bool
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
help
Indicates that a bmp280 is present on the I2C bus.
config HAVE_BMP280_SPI
bool
select MODULE_BMX280 if MODULE_SAUL_DEFAULT
help
Indicates that a bmp280 is present on the SPI bus.