mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
66 lines
1.5 KiB
Plaintext
66 lines
1.5 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.
|
|
#
|
|
|
|
config MODULE_LIS2DH12
|
|
bool
|
|
prompt "LIS2DH12 Accelerometer" if !(MODULE_SAUL_DEFAULT && HAVE_LIS2DH12)
|
|
default (MODULE_SAUL_DEFAULT && HAVE_LIS2DH12)
|
|
depends on TEST_KCONFIG
|
|
|
|
if MODULE_LIS2DH12
|
|
|
|
choice
|
|
bool "Device interface"
|
|
default MODULE_LIS2DH12_I2C if HAVE_LIS2DH12_I2C
|
|
default MODULE_LIS2DH12_SPI if HAVE_LIS2DH12_SPI
|
|
|
|
config MODULE_LIS2DH12_I2C
|
|
bool "I2C"
|
|
depends on HAS_PERIPH_I2C
|
|
select MODULE_PERIPH_I2C
|
|
|
|
config MODULE_LIS2DH12_SPI
|
|
bool "SPI"
|
|
depends on HAS_PERIPH_GPIO
|
|
depends on HAS_PERIPH_SPI
|
|
select MODULE_PERIPH_SPI
|
|
select MODULE_PERIPH_GPIO
|
|
|
|
endchoice # Device interface
|
|
|
|
config MODULE_LIS2DH12_INT
|
|
bool "Interrupt lines support"
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
select MODULE_PERIPH_GPIO_IRQ
|
|
default HAVE_LIS2DH12_INT
|
|
|
|
endif # MODULE_LIS2DH12
|
|
|
|
config HAVE_LIS2DH12
|
|
bool
|
|
help
|
|
Indicates that a LIS2DH12 Accelerometer is present.
|
|
|
|
config HAVE_LIS2DH12_I2C
|
|
bool
|
|
select HAVE_LIS2DH12
|
|
help
|
|
Indicates that a LIS2DH12 Accelerometer on the I2C bus is present.
|
|
|
|
config HAVE_LIS2DH12_SPI
|
|
bool
|
|
select HAVE_LIS2DH12
|
|
help
|
|
Indicates that a LIS2DH12 Accelerometer on the SPI bus is present.
|
|
|
|
config HAVE_LIS2DH12_INT
|
|
bool
|
|
select HAVE_LIS2DH12
|
|
help
|
|
Indicates that a LIS2DH12 Accelerometer is present with the interrupt
|
|
pin wired.
|