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

drivers/itg320x: Update kconfig model

This commit is contained in:
MrKevinWeiss 2022-03-02 14:03:45 +01:00
parent 44d2dbe12c
commit 73794dc608
No known key found for this signature in database
GPG Key ID: 3514539D7808D123

View File

@ -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.