2020-04-22 17:11:49 +02:00
|
|
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
2020-12-08 16:02:17 +01:00
|
|
|
# 2020 HAW Hamburg
|
2020-04-22 17:11:49 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2020-12-08 16:02:17 +01:00
|
|
|
|
|
|
|
config MODULE_MMA8X5X
|
|
|
|
bool "MMA8x5x Accelerometer"
|
|
|
|
depends on HAS_PERIPH_I2C
|
|
|
|
depends on TEST_KCONFIG
|
|
|
|
select MODULE_PERIPH_I2C
|
|
|
|
|
2021-11-19 09:36:37 +01:00
|
|
|
config HAVE_MMA8X5X
|
|
|
|
bool
|
|
|
|
select MODULE_MMA8X5X if MODULE_SAUL_DEFAULT
|
|
|
|
help
|
|
|
|
Indicates that an mma8x5x accelerometer is present.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_MMA8X5X
|
2020-04-22 17:11:49 +02:00
|
|
|
bool "Configure MMA8X5X driver"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_MMA8X5X
|
2020-04-22 17:11:49 +02:00
|
|
|
help
|
|
|
|
Configure the MMA8X5X driver using Kconfig.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_MMA8X5X
|
2020-04-22 17:11:49 +02:00
|
|
|
|
|
|
|
config MMA8X5X_I2C_ADDRESS
|
|
|
|
hex "Default I2C address"
|
|
|
|
range 0x1C 0x1D
|
|
|
|
default 0x1D
|
|
|
|
help
|
|
|
|
The address value depends on the state of SA0 Address Pin
|
|
|
|
in the case of MMA845x series sensors.
|
|
|
|
For more details refer Table 1 in datasheet
|
|
|
|
(MMA8451Q/MMA8452Q/MMA8453Q)
|
|
|
|
Default value corresponds to SA0 connected to VCC.
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_MMA8X5X
|
2021-11-25 12:02:27 +01:00
|
|
|
|
|
|
|
config HAVE_MMA8X5X
|
|
|
|
bool
|
|
|
|
select MODULE_MMA8X5X if MODULE_SAUL_DEFAULT
|
|
|
|
help
|
|
|
|
Indicates that a MMA8x5x is present
|