2021-01-05 18:55:09 +01:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
|
2022-03-02 14:03:58 +01:00
|
|
|
menuconfig MODULE_SI70XX
|
|
|
|
bool
|
|
|
|
prompt "Si7006/13/20/21 temperature and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SI70XX)
|
|
|
|
default (MODULE_SAUL_DEFAULT && HAVE_SI70XX)
|
2021-01-05 18:55:09 +01:00
|
|
|
depends on TEST_KCONFIG
|
2021-11-12 14:59:26 +01:00
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
select MODULE_PERIPH_I2C
|
2021-12-08 15:22:05 +01:00
|
|
|
select MODULE_ZTIMER
|
|
|
|
select MODULE_ZTIMER_MSEC
|
2021-11-12 14:59:26 +01:00
|
|
|
|
2022-03-02 14:03:58 +01:00
|
|
|
choice SI70XX_VARIANT
|
2021-11-12 14:59:26 +01:00
|
|
|
bool "Sensor variant"
|
|
|
|
depends on MODULE_SI70XX
|
|
|
|
default MODULE_SI7006 if HAVE_SI7006
|
|
|
|
default MODULE_SI7013 if HAVE_SI7013
|
|
|
|
default MODULE_SI7020 if HAVE_SI7020
|
|
|
|
default MODULE_SI7021 if HAVE_SI7021
|
2021-01-05 18:55:09 +01:00
|
|
|
|
|
|
|
config MODULE_SI7006
|
|
|
|
bool "SI7006"
|
|
|
|
|
|
|
|
config MODULE_SI7013
|
|
|
|
bool "SI7013"
|
|
|
|
|
|
|
|
config MODULE_SI7020
|
|
|
|
bool "SI7020"
|
|
|
|
|
|
|
|
config MODULE_SI7021
|
|
|
|
bool "SI7021"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2022-03-02 14:03:58 +01:00
|
|
|
config HAVE_SI70XX
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a si70XX sensor is present.
|
|
|
|
|
2021-11-12 14:59:26 +01:00
|
|
|
config HAVE_SI7006
|
2021-01-05 18:55:09 +01:00
|
|
|
bool
|
2022-03-02 14:03:58 +01:00
|
|
|
select HAVE_SI70XX
|
2021-11-12 14:59:26 +01:00
|
|
|
help
|
|
|
|
Indicates that a si7006 sensor is present.
|
2021-01-05 18:55:09 +01:00
|
|
|
|
2021-11-12 14:59:26 +01:00
|
|
|
config HAVE_SI7013
|
|
|
|
bool
|
2022-03-02 14:03:58 +01:00
|
|
|
select HAVE_SI70XX
|
2021-11-12 14:59:26 +01:00
|
|
|
help
|
|
|
|
Indicates that a si7013 sensor is present.
|
|
|
|
|
|
|
|
config HAVE_SI7020
|
|
|
|
bool
|
2022-03-02 14:03:58 +01:00
|
|
|
select HAVE_SI70XX
|
2021-11-12 14:59:26 +01:00
|
|
|
help
|
|
|
|
Indicates that a si7020 sensor is present.
|
|
|
|
|
|
|
|
config HAVE_SI7021
|
|
|
|
bool
|
2022-03-02 14:03:58 +01:00
|
|
|
select HAVE_SI70XX
|
2021-11-12 14:59:26 +01:00
|
|
|
help
|
2021-12-08 15:22:05 +01:00
|
|
|
Indicates that a si7021 sensor is present.
|