1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/vcnl40x0: add modules to Kconfig

This commit is contained in:
Leandro Lanzieri 2021-01-07 15:35:40 +01:00
parent 977b517229
commit 80cc89510b
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
2 changed files with 35 additions and 0 deletions

View File

@ -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"

34
drivers/vcnl40x0/Kconfig Normal file
View File

@ -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