From 73794dc6084432875c6d91d21761f116253e07c7 Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 2 Mar 2022 14:03:45 +0100 Subject: [PATCH] drivers/itg320x: Update kconfig model --- drivers/itg320x/Kconfig | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/itg320x/Kconfig b/drivers/itg320x/Kconfig index 243c831c5a..62e6e37c1e 100644 --- a/drivers/itg320x/Kconfig +++ b/drivers/itg320x/Kconfig @@ -6,7 +6,9 @@ # menuconfig MODULE_ITG320X - bool "ITG320X 3-axis gyroscope" + bool + prompt "ITG320X 3-axis gyroscope" if !(MODULE_SAUL_DEFAULT && HAVE_ITG320X) + default (MODULE_SAUL_DEFAULT && HAVE_ITG320X) depends on HAS_PERIPH_I2C depends on TEST_KCONFIG select MODULE_PERIPH_I2C @@ -19,5 +21,18 @@ config MODULE_ITG320X_INT depends on MODULE_ITG320X depends on HAS_PERIPH_GPIO_IRQ select MODULE_PERIPH_GPIO_IRQ + default HAVE_ITG320X_INT help Say y to fetch the data when the data-ready interrupt is triggered. + +config HAVE_ITG320X + bool + help + Indicates that a ITG320X 3-axis gyroscope is present. + +config HAVE_ITG320X_INT + bool + select HAVE_ITG320X + help + Indicates that a ITG320X 3-axis gyroscope is present with interrupt pin + wired.