From c8e0e49943054b8a595ff5b57fc5a9af72f23aaf Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 14:27:33 +0100 Subject: [PATCH] drivers/tmp00x: add modules to Kconfig --- drivers/tmp00x/Kconfig | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/tmp00x/Kconfig b/drivers/tmp00x/Kconfig index e52d7dfc01..6f24023d4a 100644 --- a/drivers/tmp00x/Kconfig +++ b/drivers/tmp00x/Kconfig @@ -1,9 +1,36 @@ # Copyright (c) 2020 Freie Universitaet Berlin +# 2021 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. # + +if TEST_KCONFIG + +choice + bool "TMP006/TMP007 Infrared Thermopile sensors" + optional + depends on HAS_PERIPH_I2C + +config MODULE_TMP006 + bool "TMP006" + select MODULE_TMP00X + +config MODULE_TMP007 + bool "TMP007" + select MODULE_TMP00X + +endchoice + +config MODULE_TMP00X + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + select MODULE_XTIMER + +endif # TEST_KCONFIG + menuconfig KCONFIG_USEMODULE_TMP00X bool "Configure TMP00X driver" depends on USEMODULE_TMP00X