mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-15 17:41:25 +00:00
1d114ffa3ccca7fd99a49a67754806e3655d7fe6
The BMI160 driver requires that the macro I2C_PORT_ACCEL is defined. This commit simply defines that macro and defines a matrix to rotate the sensor data into the standard frame. BUG=b:79715267 BRANCH=master TEST=Flash nocturne, verify that the BMI160 initializes successfully. Verify that when device is struck from the left edge, positive acceleration is seen on the X axis. When device is struck from the bottom edge, positive acceleration is seen on Y axis. Change-Id: I6407b21fdfe311fa8ac7d83a8050ebfb27b4e0d8 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/1059535 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%