mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
b52f9b8ea614804e5e198f00cc24a5084e14470e
LPC area for sensors support 3 sensors: up to 2 accelerometers and 1 gyro. If only 1 accelerometer is present, only the first accelerometer slot is populated. If there is no gyro, the gyro slot is not populated. Add tests and remove assumption in the code to be sure the rules above are enforced. BRANCH=none BUG=b:64232053 TEST=compile, check eve is still working. On soraka: ectool motionsense odr 2 10000 ectool motionsense output matches: grep . /sys/bus/iio/devices/*/in_*_raw Change-Id: Ifd791a6fa89d94bf91ad1a65b8987f69bada801e Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/639319 Reviewed-by: Nicolas Boichat <drinkcat@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%