From 80cc89510bbaa7f24b51bebfdf3d9fa06efc935b Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Thu, 7 Jan 2021 15:35:40 +0100 Subject: [PATCH] drivers/vcnl40x0: add modules to Kconfig --- drivers/Kconfig | 1 + drivers/vcnl40x0/Kconfig | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 drivers/vcnl40x0/Kconfig diff --git a/drivers/Kconfig b/drivers/Kconfig index cd51a34fb9..7e005f20d2 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -110,6 +110,7 @@ rsource "tcs37727/Kconfig" rsource "tmp00x/Kconfig" rsource "tsl2561/Kconfig" rsource "tsl4531x/Kconfig" +rsource "vcnl40x0/Kconfig" endmenu # Sensor Device Drivers menu "Storage Device Drivers" diff --git a/drivers/vcnl40x0/Kconfig b/drivers/vcnl40x0/Kconfig new file mode 100644 index 0000000000..c96af4a68e --- /dev/null +++ b/drivers/vcnl40x0/Kconfig @@ -0,0 +1,34 @@ +# 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 "VCNL4010/VCNL4020/VCNL4040 Proximity and Ambient Light sensors" + optional + depends on HAS_PERIPH_I2C + +config MODULE_VCNL4010 + bool "VCNL4010" + select MODULE_VCNL40X0 + +config MODULE_VCNL4020 + bool "VCNL4020" + select MODULE_VCNL40X0 + +config MODULE_VCNL4040 + bool "VCNL4040" + select MODULE_VCNL40X0 + +endchoice + +config MODULE_VCNL40X0 + bool + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + +endif # TEST_KCONFIG