From 7f6c1def8a8dc6fd35af6106abb320fbe2aa4ec8 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:54 +0100 Subject: [PATCH] drivers/sdp3x: Update kconfig model --- drivers/sdp3x/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/sdp3x/Kconfig b/drivers/sdp3x/Kconfig index 57c13385ac..0725f82c46 100644 --- a/drivers/sdp3x/Kconfig +++ b/drivers/sdp3x/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_SDP3X - bool "SDP3X temperature and differential pressure sensor" + bool + prompt "SDP3X temperature and differential pressure sensor" if !(MODULE_SAUL_DEFAULT && HAVE_SDP3X) + default (MODULE_SAUL_DEFAULT && HAVE_SDP3X) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -15,8 +17,21 @@ menuconfig MODULE_SDP3X config MODULE_SDP3X_IRQ bool "GPIO interrupt support" + default HAVE_SDP3X_IRQ depends on HAS_PERIPH_GPIO depends on HAS_PERIPH_GPIO_IRQ depends on MODULE_SDP3X select MODULE_PERIPH_GPIO select MODULE_PERIPH_GPIO_IRQ + +config HAVE_SDP3X + bool + help + Indicates that a SDP3X temperature and differential pressure sensor is present. + +config HAVE_SDP3X_IRQ + bool + select HAVE_SDP3X + help + Indicates that a SDP3X temperature and differential pressure sensor is + present with the interrupt pin wired.