mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/hmc5883l: Update kconfig model
This commit is contained in:
parent
a311bc1915
commit
29874e8f3d
@ -6,7 +6,9 @@
|
||||
#
|
||||
|
||||
menuconfig MODULE_HMC5883L
|
||||
bool "HMC5883L 3-axis digital compass"
|
||||
bool
|
||||
prompt "HMC5883L 3-axis digital compass" if !(MODULE_SAUL_DEFAULT && HAVE_HMC5883L)
|
||||
default (MODULE_SAUL_DEFAULT && HAVE_HMC5883L)
|
||||
depends on HAS_PERIPH_I2C
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_PERIPH_I2C
|
||||
@ -18,5 +20,18 @@ config MODULE_HMC5883L_INT
|
||||
depends on HAS_PERIPH_GPIO_IRQ
|
||||
select MODULE_PERIPH_GPIO
|
||||
select MODULE_PERIPH_GPIO_IRQ
|
||||
default y if HAVE_HMC5883L_INT
|
||||
help
|
||||
Allows to configure an interrupt pin to get an event on data ready.
|
||||
|
||||
config HAVE_HMC5883L
|
||||
bool
|
||||
help
|
||||
Indicates that a HMC5883L 3-axis digital compass is present.
|
||||
|
||||
config HAVE_HMC5883L_INT
|
||||
bool
|
||||
select HAVE_HMC5883L
|
||||
help
|
||||
Indicates that a HMC5883L 3-axis digital compass is present with
|
||||
data-ready interrupt pin connected.
|
||||
|
Loading…
Reference in New Issue
Block a user