mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
# 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
|
|
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
|
|
|
|
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
|
|
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.
|