mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/sht1x: rework Kconfig
This commit is contained in:
parent
371161548c
commit
7b35d6e0f0
@ -5,32 +5,52 @@
|
||||
# directory for more details.
|
||||
#
|
||||
|
||||
if TEST_KCONFIG
|
||||
|
||||
choice
|
||||
bool "SHT10/SHT11/SHT15 Humidity and Temperature Sensor"
|
||||
optional
|
||||
depends on HAS_PERIPH_GPIO
|
||||
|
||||
config MODULE_SHT10
|
||||
bool "SHT10"
|
||||
select MODULE_SHT1X
|
||||
|
||||
config MODULE_SHT11
|
||||
bool "SHT11"
|
||||
select MODULE_SHT1X
|
||||
|
||||
config MODULE_SHT15
|
||||
bool "SHT15"
|
||||
select MODULE_SHT1X
|
||||
|
||||
endchoice
|
||||
|
||||
config MODULE_SHT1X
|
||||
menuconfig MODULE_SHT1X
|
||||
bool
|
||||
prompt "SHT10/SHT11/SHT15 Humidity and Temperature Sensor" if !(HAVE_SHT1X && MODULE_SAUL_DEFAULT)
|
||||
default y if HAVE_SHT1X && MODULE_SAUL_DEFAULT
|
||||
depends on HAS_PERIPH_GPIO
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_XTIMER
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
choice
|
||||
bool "Select sensor variant"
|
||||
depends on MODULE_SHT1X
|
||||
default MODULE_SHT10 if HAVE_SHT10
|
||||
default MODULE_SHT11 if HAVE_SHT11
|
||||
default MODULE_SHT15 if HAVE_SHT15
|
||||
|
||||
config MODULE_SHT10
|
||||
bool "SHT10"
|
||||
|
||||
config MODULE_SHT11
|
||||
bool "SHT11"
|
||||
|
||||
config MODULE_SHT15
|
||||
bool "SHT15"
|
||||
|
||||
endchoice
|
||||
|
||||
config HAVE_SHT10
|
||||
bool
|
||||
select HAVE_SHT1X
|
||||
help
|
||||
Indicates that an sht10 humidity and temperature sensor is present.
|
||||
|
||||
config HAVE_SHT11
|
||||
bool
|
||||
select HAVE_SHT1X
|
||||
help
|
||||
Indicates that an sht11 humidity and temperature sensor is present.
|
||||
|
||||
config HAVE_SHT15
|
||||
bool
|
||||
select HAVE_SHT1X
|
||||
help
|
||||
Indicates that an sht15 humidity and temperature sensor is present.
|
||||
|
||||
config HAVE_SHT1X
|
||||
bool
|
||||
help
|
||||
Indicates that an sht1x humidity and temperature sensor is present.
|
||||
|
@ -5,6 +5,7 @@
|
||||
CONFIG_MODULE_SAUL=y
|
||||
CONFIG_MODULE_SAUL_DEFAULT=y
|
||||
|
||||
CONFIG_MODULE_SHT1X=y
|
||||
CONFIG_MODULE_SHT11=y
|
||||
|
||||
CONFIG_MODULE_PS=y
|
||||
|
Loading…
Reference in New Issue
Block a user