drivers/bmx280: add modules to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-11-17 11:07:52 +01:00
parent 008582aa6f
commit 0494e18a58
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 49 additions and 0 deletions

View File

@ -38,6 +38,7 @@ rsource "bh1900nux/Kconfig"
rsource "bme680/Kconfig" rsource "bme680/Kconfig"
rsource "bmp180/Kconfig" rsource "bmp180/Kconfig"
rsource "bmx055/Kconfig" rsource "bmx055/Kconfig"
rsource "bmx280/Kconfig"
rsource "fxos8700/Kconfig" rsource "fxos8700/Kconfig"
rsource "gp2y10xx/Kconfig" rsource "gp2y10xx/Kconfig"
rsource "hdc1000/Kconfig" rsource "hdc1000/Kconfig"

48
drivers/bmx280/Kconfig Normal file
View File

@ -0,0 +1,48 @@
# 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.
#
choice
bool "BMx280 Temperature, pressure and humidity sensors"
optional
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
select MODULE_BMX280
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
select MODULE_BMX280
config MODULE_BMP280_I2C
bool "BMP280 on I2C"
depends on HAS_PERIPH_I2C
select MODULE_PERIPH_I2C
select MODULE_BMX280
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
select MODULE_BMX280
endchoice
config MODULE_BMX280
bool
depends on TEST_KCONFIG
select MODULE_XTIMER