1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/bmx280/Kconfig

82 lines
2.0 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
2021-09-30 13:41:51 +02:00
bool
prompt "BMx280 Temperature, pressure and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_BMX280)
default (MODULE_SAUL_DEFAULT && HAVE_BMX280)
depends on TEST_KCONFIG
2020-11-17 11:07:52 +01:00
2021-09-30 13:41:51 +02:00
if MODULE_BMX280
choice BMX280_VARIANT
bool "Model"
2021-11-12 14:57:37 +01:00
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
2021-09-30 13:41:51 +02: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
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-09-30 13:41:51 +02:00
endif # MODULE_BMX280
2022-03-02 14:03:33 +01:00
config HAVE_BMX280
bool
help
Indicates that a bmx280 sensor is present.
2021-11-12 14:57:37 +01:00
config HAVE_BME280_I2C
2020-11-17 11:07:52 +01:00
bool
2021-09-30 13:41:51 +02:00
select HAVE_BMX280
2021-11-12 14:57:37 +01:00
help
2021-09-30 13:41:51 +02:00
Indicates that a bme280 sensor on the I2C bus is present.
2021-11-12 14:57:37 +01:00
config HAVE_BME280_SPI
bool
2021-09-30 13:41:51 +02:00
select HAVE_BMX280
2021-11-12 14:57:37 +01:00
help
2021-09-30 13:41:51 +02:00
Indicates that a bme280 sensor on the SPI bus is present.
2021-11-12 14:57:37 +01:00
config HAVE_BMP280_I2C
bool
2021-09-30 13:41:51 +02:00
select HAVE_BMX280
2021-11-12 14:57:37 +01:00
help
2021-09-30 13:41:51 +02:00
Indicates that a bmp280 sensor on the I2C bus is present.
2021-11-12 14:57:37 +01:00
config HAVE_BMP280_SPI
bool
2021-09-30 13:41:51 +02:00
select HAVE_BMX280
help
Indicates that a bmp280 sensor on the SPI bus is present.