summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-11-17 13:20:12 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-19 16:28:02 -0800
commit9d7f1674460ce8e1a9c2fab79909cfd3bc856807 (patch)
treeff3dc2524149962190f81e2da0676e0ccd2f8ec9 /include/motion_sense.h
parentd98999f3685ddbd27af86e1d96f2af030af9beab (diff)
downloadchrome-ec-9d7f1674460ce8e1a9c2fab79909cfd3bc856807.tar.gz
motion: wake up main task for all changes in EC parameter.
We need to wake up the main task, even if we disable a sensor. It will force sending the sensors samples in the FIFO and put a timestamp behind them. Also, reduce the interrupt period by 10us to be sure we fire interrupt to the AP even if there are some variation in the timing calculation. BUG=b:24367625 BRANCH=smaug TEST=Run ts.SingleSensorTests overnight. Change-Id: I6d966d52b5cbb72ba5eb936bc2fad6c06c7d8605 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/312986 Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index b16c309db7..a840d8ce8b 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -51,7 +51,9 @@ struct motion_data_t {
* MSB is used to know if we are rounding up.
*/
unsigned int odr;
- /* delay between collection by EC, in us.
+
+ /*
+ * delay between collection by EC, in us.
* For non FIFO sensor, should be need 1e6/odr to
* collect events.
* For sensor with FIFO, can be much longer.