diff options
author | Mario Tesi <mario.tesi@st.com> | 2016-11-02 11:42:48 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-15 07:04:30 -0800 |
commit | 64b57efebdb311126f3daaa97d49443308507b76 (patch) | |
tree | 9b6b8692e6613f5a2bc9150ddd32ffabf367a2c3 /common | |
parent | 1d093deb54a2713295add2ebae41f6c2abb78e62 (diff) | |
download | chrome-ec-64b57efebdb311126f3daaa97d49443308507b76.tar.gz |
accel: add accel driver for LSM6DSM
This add basics for acc and gyro sensor ST lsm6dsm
Still need to add interrupt management for embedded
functions and FIFO
BUG=none
BRANCH=master
TEST=Tested on discovery BOARD with sensor connected on
EC i2c master bus. Added motion sense task on discovery
board task list, added gpio info in board configuration
file and tested with motion sense console commands. Data
for acc/gyro seems ok, can successfully change ODR and
full scale range for acc and gyro.
Change-Id: Ie50c8c0ee366994ed97f7ff3252633893b813ac2
Signed-off-by: Mario Tesi <mario.tesi@st.com>
Reviewed-on: https://chromium-review.googlesource.com/406947
Commit-Ready: mario tesi <mario.tesi@st.com>
Tested-by: mario tesi <mario.tesi@st.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/build.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk index d835badad9..6a3ac51b61 100644 --- a/common/build.mk +++ b/common/build.mk @@ -12,6 +12,7 @@ common-y+=version.o printf.o queue.o queue_policies.o common-$(CONFIG_ACCELGYRO_BMA255)+=math_util.o common-$(CONFIG_ACCELGYRO_BMI160)+=math_util.o common-$(CONFIG_ACCELGYRO_LSM6DS0)+=math_util.o +common-$(CONFIG_ACCELGYRO_LSM6DSM)+=math_util.o common-$(CONFIG_ACCEL_KXCJ9)+=math_util.o common-$(CONFIG_ACCEL_KX022)+=math_util.o common-$(CONFIG_ADC)+=adc.o |