mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/vcnl40x0: Update kconfig model
This commit is contained in:
parent
ce2c415dbb
commit
8064bc7493
@ -5,30 +5,51 @@
|
||||
# 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
|
||||
menuconfig MODULE_VCNL40X0
|
||||
bool
|
||||
prompt "VCNL4010/VCNL4020/VCNL4040 Proximity and Ambient Light sensors" if !(MODULE_SAUL_DEFAULT && HAVE_VCNL40X0)
|
||||
default (MODULE_SAUL_DEFAULT && HAVE_VCNL40X0)
|
||||
depends on TEST_KCONFIG
|
||||
depends on HAS_PERIPH_I2C
|
||||
select MODULE_PERIPH_I2C
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
choice VCNL40X0_VARIANT
|
||||
bool "variant"
|
||||
depends on MODULE_VCNL40X0
|
||||
default MODULE_VCNL4010 if HAVE_VCNL4010
|
||||
default MODULE_VCNL4020 if HAVE_VCNL4020
|
||||
default MODULE_VCNL4040 if HAVE_VCNL4040
|
||||
|
||||
config MODULE_VCNL4010
|
||||
bool "VCNL4010"
|
||||
|
||||
config MODULE_VCNL4020
|
||||
bool "VCNL4020"
|
||||
|
||||
config MODULE_VCNL4040
|
||||
bool "VCNL4040"
|
||||
|
||||
endchoice
|
||||
|
||||
config HAVE_VCNL40X0
|
||||
bool
|
||||
help
|
||||
Indicates that a VCNL40X0 Proximity and Ambient Light sensor is present.
|
||||
|
||||
config HAVE_VCNL4010
|
||||
bool
|
||||
select HAVE_VCNL40X0
|
||||
help
|
||||
Indicates that a VCNL4010 Proximity and Ambient Light sensor is present.
|
||||
|
||||
config HAVE_VCNL4020
|
||||
bool
|
||||
select HAVE_VCNL40X0
|
||||
help
|
||||
Indicates that a VCNL4020 Proximity and Ambient Light sensor is present.
|
||||
|
||||
config HAVE_VCNL4040
|
||||
bool
|
||||
select HAVE_VCNL40X0
|
||||
help
|
||||
Indicates that a VCNL4040 Proximity and Ambient Light sensor is present.
|
||||
|
@ -1,4 +1,5 @@
|
||||
# this file enables modules defined in Kconfig. Do not use this file for
|
||||
# application configuration. This is only needed during migration.
|
||||
CONFIG_MODULE_VCNL4010=y
|
||||
CONFIG_MODULE_VCNL40X0=y
|
||||
CONFIG_MODULE_XTIMER=y
|
||||
|
Loading…
Reference in New Issue
Block a user