2020-11-26 15:17:22 +01:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig MODULE_HMC5883L
|
2022-03-02 14:03:42 +01:00
|
|
|
bool
|
|
|
|
prompt "HMC5883L 3-axis digital compass" if !(MODULE_SAUL_DEFAULT && HAVE_HMC5883L)
|
|
|
|
default (MODULE_SAUL_DEFAULT && HAVE_HMC5883L)
|
2020-11-26 15:17:22 +01:00
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_I2C
|
|
|
|
|
|
|
|
config MODULE_HMC5883L_INT
|
|
|
|
bool "Data-ready interrupt"
|
|
|
|
depends on MODULE_HMC5883L
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
2022-03-02 14:03:42 +01:00
|
|
|
default y if HAVE_HMC5883L_INT
|
2020-11-26 15:17:22 +01:00
|
|
|
help
|
|
|
|
Allows to configure an interrupt pin to get an event on data ready.
|
2022-03-02 14:03:42 +01:00
|
|
|
|
|
|
|
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.
|