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

60 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_SHTCX
bool
prompt "SHTCX Temperature and humidity sensors" if !(MODULE_SAUL_DEFAULT && HAVE_SHTCX)
default y if (MODULE_SAUL_DEFAULT && HAVE_SHTCX)
depends on HAS_PERIPH_I2C
depends on TEST_KCONFIG
select MODULE_PERIPH_I2C
select MODULE_CHECKSUM
help
Device driver for the Sensirion SHTCX Temperature and Humidity sensor family
(SHTC1/SHTC3). Select a model.
if MODULE_SHTCX
choice
bool "sensor variant"
default MODULE_SHTC1 if HAVE_SHTC1
default MODULE_SHTC3 if HAVE_SHTC3
help
Device driver for the SHTCX pressure sensor family
(SHTC1/SHTC3). Select a model.
config MODULE_SHTC1
bool "SHTC1"
config MODULE_SHTC3
bool "SHTC3"
endchoice
endif # MODULE_SHTCX
menuconfig KCONFIG_USEMODULE_SHTCX
bool "Configure SHTCX driver"
depends on USEMODULE_SHTCX
help
Configure the SHTCX driver using Kconfig.
config HAVE_SHTCX
bool
config HAVE_SHTC1
bool
select HAVE_SHTCX
help
Indicates that an SHTC1 sensor is present.
config HAVE_SHTC3
bool
select HAVE_SHTCX
help
Indicates that an SHTC3 sensor is present.