drivers/sensors: Add driver for ST LIS2DH accelerometer. From Timo Voutilainen <time.voutilainen@haltian.com> et al.

This commit is contained in:
Juha Niskanen
2017-04-03 07:28:22 -06:00
committed by Gregory Nutt
parent 1b6630ee75
commit dfe6a672c1
5 changed files with 2519 additions and 2 deletions
+31 -2
View File
@@ -75,12 +75,41 @@ config SENSOR_KXTJ9_I2C_BUS_SPEED
endif # SENSOR_KXTJ9
config LIS2DH
bool "STMicro LIS2DH device support"
default n
select I2C
---help---
Enable driver support for the STMicro LIS2DH accelerometer
if LIS2DH
config DEBUG_LIS2DH
bool "Debug support for the LIS2DH"
default n
---help---
Enables debug features for the LIS2DH
config LIS2DH_NPOLLWAITERS
int "Number of waiters to poll"
default 2
---help---
Maximum number of threads that can be waiting on poll()
config LIS2DH_DRIVER_SELFTEST
bool "Enable selftest in LIS2DH driver"
default n
---help---
Enable selftest in LIS2DH driver
endif # LIS2DH
config LIS3DSH
bool "STMicro LIS3DSH 3-Axis acclerometer support"
bool "STMicro LIS3DSH 3-Axis accelerometer support"
default n
select SPI
---help---
Enable driver support for the STMicro LIS3DSH 3-Axis acclerometer.
Enable driver support for the STMicro LIS3DSH 3-Axis accelerometer.
config LIS331DL
bool "STMicro LIS331DL device support"
+4
View File
@@ -53,6 +53,10 @@ ifeq ($(CONFIG_SENSOR_KXTJ9),y)
CSRCS += kxtj9.c
endif
ifeq ($(CONFIG_LIS2DH),y)
CSRCS += lis2dh.c
endif
ifeq ($(CONFIG_LIS3DSH),y)
CSRCS += lis3dsh.c
endif
File diff suppressed because it is too large Load Diff