From 87e769a87e43c17eea69cbe6d04c3dc072f79a91 Mon Sep 17 00:00:00 2001 From: Mario Tesi Date: Tue, 4 Apr 2017 11:00:55 +0200 Subject: [PATCH] driver: lsm6dsm/lsm6dsl: Add FIFO support Added FIFO support to Acc and Gyro with watermark interrupt management. Watermark is configurable setting macro CONFIG_ACCEL_FIFO_THRES properly (board.h) BUG=b:73546254 BRANCH=master TEST=Pass CTS test cheets_CTS_N.7.1_r15.x86.CtsHardwareTestCases on meowth. TEST=Tested on discovery (target stmems) BOARD with LSM6DSM connected to EC i2c master bus. Using motion sense console commands is possible to: - enable sensor (accelinit 0, accelinit 1 for acc and gyro) - set ODR (accelrate 0 x, accelrate 1 y where x, y are mHz) - show sensor data (accelinfo on