From 60f60798d16cfa4e1b56e9233de6f197d27b0aab Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Tue, 5 Jan 2021 18:59:00 +0100 Subject: [PATCH] drivers/si114x: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/si114x/Kconfig | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 drivers/si114x/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index f484aebeef..e0f86098c0 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -116,6 +116,7 @@ rsource "sht2x/Kconfig" rsource "sht3x/Kconfig" rsource "shtc1/Kconfig" rsource "si70xx/Kconfig" +rsource "si114x/Kconfig" rsource "sps30/Kconfig" rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" diff --git a/drivers/si114x/Kconfig b/drivers/si114x/Kconfig new file mode 100644 index 0000000000..e6eb07c3b9 --- /dev/null +++ b/drivers/si114x/Kconfig @@ -0,0 +1,36 @@ +# Copyright (c) 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 "Si1145/6/7 UV/Ambient light/Proximity sensors" + optional + depends on HAS_PERIPH_I2C + depends on TEST_KCONFIG + +config MODULE_SI1145 + bool "SI1145" + select MODULE_SI114X + +config MODULE_SI1146 + bool "SI1146" + select MODULE_SI114X + +config MODULE_SI1147 + bool "SI1147" + select MODULE_SI114X + +endchoice + +config MODULE_SI114X + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + select MODULE_XTIMER + +endif # TEST_KCONFIG