From 18c937ab697a1c8bc178dc7268b6991f9824da11 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 13 Nov 2020 14:05:17 +0100 Subject: [PATCH] {drivers/pkg}: add bm680 to Kconfig --- drivers/Kconfig | 1 + drivers/bme680/Kconfig | 38 ++++++++++++++++++++++++++++++++++++++ pkg/Kconfig | 1 + pkg/driver_bme680/Kconfig | 15 +++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 drivers/bme680/Kconfig create mode 100644 pkg/driver_bme680/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index 2da819005f..a4a446b6e7 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -33,6 +33,7 @@ rsource "apds99xx/Kconfig" rsource "at30tse75x/Kconfig" rsource "bh1750fvi/Kconfig" rsource "bh1900nux/Kconfig" +rsource "bme680/Kconfig" rsource "bmx055/Kconfig" rsource "fxos8700/Kconfig" rsource "gp2y10xx/Kconfig" diff --git a/drivers/bme680/Kconfig b/drivers/bme680/Kconfig new file mode 100644 index 0000000000..a6d53458b3 --- /dev/null +++ b/drivers/bme680/Kconfig @@ -0,0 +1,38 @@ +# 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_BME680 + bool "BME680 Temperature/Humidity/Pressure/Gas sensor" + depends on TEST_KCONFIG + select PACKAGE_DRIVER_BME680 + select MODULE_XTIMER if MODULE_SAUL + +if MODULE_BME680 + +choice + bool "Device interface" + help + The device can be connected via different buses, select one. + +config MODULE_BME680_I2C + bool "I2C" + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + +config MODULE_BME680_SPI + bool "SPI" + depends on HAS_PERIPH_SPI + depends on HAS_PERIPH_GPIO + select MODULE_PERIPH_SPI + select MODULE_PERIPH_GPIO + +endchoice + +config MODULE_BME680_FP + bool "Enable floating point" + +endif # MODULE_BME680 diff --git a/pkg/Kconfig b/pkg/Kconfig index 58775f3ebc..28c019790d 100644 --- a/pkg/Kconfig +++ b/pkg/Kconfig @@ -6,6 +6,7 @@ # menu "Packages" +rsource "driver_bme680/Kconfig" rsource "tinydtls/Kconfig" rsource "wakaama/Kconfig" diff --git a/pkg/driver_bme680/Kconfig b/pkg/driver_bme680/Kconfig new file mode 100644 index 0000000000..f2a97c9198 --- /dev/null +++ b/pkg/driver_bme680/Kconfig @@ -0,0 +1,15 @@ +# 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. +# + +config PACKAGE_DRIVER_BME680 + bool "BME680 sensor driver package" + select MODULE_DRIVER_BME680_CONTRIB + +config MODULE_DRIVER_BME680_CONTRIB + bool + help + RIOT integration code for the BME680 package.