drivers/mma8x5x : Expose to Kconfig
Expose Configurations to Kconfig
This commit is contained in:
parent
7e3096eae1
commit
ec98054bea
@ -13,4 +13,5 @@ endmenu # Network Device Drivers
|
|||||||
menu "Sensor Device Drivers"
|
menu "Sensor Device Drivers"
|
||||||
rsource "ads101x/Kconfig"
|
rsource "ads101x/Kconfig"
|
||||||
rsource "hdc1000/Kconfig"
|
rsource "hdc1000/Kconfig"
|
||||||
|
rsource "mma8x5x/Kconfig"
|
||||||
endmenu # Sensor Device Drivers
|
endmenu # Sensor Device Drivers
|
||||||
|
|||||||
26
drivers/mma8x5x/Kconfig
Normal file
26
drivers/mma8x5x/Kconfig
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
||||||
|
#
|
||||||
|
# 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 KCONFIG_MODULE_MMA8X5X
|
||||||
|
bool "Configure MMA8X5X driver"
|
||||||
|
depends on MODULE_MMA8X5X
|
||||||
|
help
|
||||||
|
Configure the MMA8X5X driver using Kconfig.
|
||||||
|
|
||||||
|
if KCONFIG_MODULE_MMA8X5X
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
endif # KCONFIG_MODULE_MMA8X5X
|
||||||
Loading…
x
Reference in New Issue
Block a user