mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
# 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.
|
|
#
|
|
|
|
menuconfig MODULE_SI114X
|
|
bool
|
|
prompt "Si1145/6/7 UV/Ambient light/Proximity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI114X)
|
|
default (MODULE_SAUL_DEFAULT && HAVE_SI114X)
|
|
depends on TEST_KCONFIG
|
|
depends on HAS_PERIPH_I2C
|
|
select MODULE_PERIPH_I2C
|
|
select MODULE_ZTIMER
|
|
select MODULE_ZTIMER_MSEC
|
|
|
|
choice SI114X_VARIANT
|
|
bool "variant"
|
|
depends on MODULE_SI114X
|
|
default MODULE_SI1145 if HAVE_SI1145
|
|
default MODULE_SI1146 if HAVE_SI1146
|
|
default MODULE_SI1147 if HAVE_SI1147
|
|
|
|
config MODULE_SI1145
|
|
bool "SI1145"
|
|
|
|
config MODULE_SI1146
|
|
bool "SI1146"
|
|
|
|
config MODULE_SI1147
|
|
bool "SI1147"
|
|
|
|
endchoice
|
|
|
|
config HAVE_SI114X
|
|
bool
|
|
help
|
|
Indicates that a Si114X UV/Ambient light/Proximity sensor is present.
|
|
|
|
config HAVE_SI1145
|
|
bool
|
|
select HAVE_SI114X
|
|
help
|
|
Indicates that a Si1145 UV/Ambient light/Proximity sensor is present.
|
|
|
|
config HAVE_SI1146
|
|
bool
|
|
select HAVE_SI114X
|
|
help
|
|
Indicates that a Si1146 UV/Ambient light/Proximity sensor is present.
|
|
|
|
config HAVE_SI1147
|
|
bool
|
|
select HAVE_SI114X
|
|
help
|
|
Indicates that a Si1147 UV/Ambient light/Proximity sensor is present.
|