diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-03-30 15:12:44 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-19 19:21:18 -0700 |
commit | 47f344713e3792b5b75ccd8d8d0f3797208e2de7 (patch) | |
tree | cde7cc10be1a00e593673335b220c0515ec06348 /driver/build.mk | |
parent | 1f4d4f8a4ec219e84e9d1554f765ec6a4feb6039 (diff) | |
download | chrome-ec-47f344713e3792b5b75ccd8d8d0f3797208e2de7.tar.gz |
driver: lsm6dsm/lsm6dsl/lis2dh: Use STM MEMs common functions
LSM6DSM now use STM MEMs common functions already
used by LIS2DH12 device. Added st_raw_read_n_noinc
function to read i2c data not using auto increment
protocol.
BUG=b:73546254
BRANCH=master
TEST=Tested on discovery BOARD with LSM6DSM sensor connected on
I2C master bus interface of target board.
Using motion sense console commands is possible to enable, set data
rate, set full scale and show data from sensor (acc and gyro).
Commons function works properly for LSM6DSM.
Change-Id: I7a987306135a85abcfa9c1d3ba596fb70598fadc
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/465376
Diffstat (limited to 'driver/build.mk')
-rw-r--r-- | driver/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/build.mk b/driver/build.mk index 4fa26af667..23eb0a2d65 100644 --- a/driver/build.mk +++ b/driver/build.mk @@ -13,7 +13,7 @@ driver-$(CONFIG_ACCEL_KX022)+=accel_kionix.o driver-$(CONFIG_ACCELGYRO_LSM6DS0)+=accelgyro_lsm6ds0.o driver-$(CONFIG_ACCELGYRO_BMI160)+=accelgyro_bmi160.o driver-$(CONFIG_MAG_BMI160_BMM150)+=mag_bmm150.o -driver-$(CONFIG_ACCELGYRO_LSM6DSM)+=accelgyro_lsm6dsm.o +driver-$(CONFIG_ACCELGYRO_LSM6DSM)+=accelgyro_lsm6dsm.o stm_mems_common.o driver-$(CONFIG_ACCEL_LIS2DH)+=accel_lis2dh.o stm_mems_common.o driver-$(CONFIG_SYNC)+=sync.o |