diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-11-17 13:05:58 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-18 13:33:27 -0800 |
commit | 420099f74976b3af1f4b24dc24b9fec461b1037b (patch) | |
tree | ed28845a84cccfd5083902c5a12b36b4bb015247 /include | |
parent | 192d0b4da107aa65c3e340e883034811601cbe17 (diff) | |
download | chrome-ec-420099f74976b3af1f4b24dc24b9fec461b1037b.tar.gz |
motion: Change units of ec_rate from us to ms.
To ease finer calculation of ec rate change units from
ms to us.
BRANCH=smaug
BUG=b:24367625
TEST=compile
Change-Id: I52057c8ca1b1180a64b58d1ba0af9ec53f40b026
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/312984
Diffstat (limited to 'include')
-rw-r--r-- | include/motion_sense.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 89203dd040..b16c309db7 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -49,15 +49,15 @@ struct motion_data_t { /* * data rate the sensor will measure, in mHz: 0 suspended. * MSB is used to know if we are rounding up. - * */ - unsigned odr; - /* delay between collection by EC, in ms. + */ + unsigned int odr; + /* 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. * 0: no collection. */ - unsigned short ec_rate; + unsigned int ec_rate; }; struct motion_sensor_t { |