summaryrefslogtreecommitdiff
path: root/board/samus
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2015-11-17 13:05:58 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-18 13:33:27 -0800
commit420099f74976b3af1f4b24dc24b9fec461b1037b (patch)
treeed28845a84cccfd5083902c5a12b36b4bb015247 /board/samus
parent192d0b4da107aa65c3e340e883034811601cbe17 (diff)
downloadchrome-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 'board/samus')
-rw-r--r--board/samus/board.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/samus/board.c b/board/samus/board.c
index 83b9b58309..84cadf1042 100644
--- a/board/samus/board.c
+++ b/board/samus/board.c
@@ -321,16 +321,16 @@ struct motion_sensor_t motion_sensors[] = {
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 119000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* Used for double tap */
[SENSOR_CONFIG_EC_S3] = {
.odr = TAP_ODR | ROUND_UP_FLAG,
- .ec_rate = CONFIG_GESTURE_SAMPLING_INTERVAL_MS
+ .ec_rate = CONFIG_GESTURE_SAMPLING_INTERVAL_MS * MSEC,
},
[SENSOR_CONFIG_EC_S5] = {
.odr = TAP_ODR | ROUND_UP_FLAG,
- .ec_rate = CONFIG_GESTURE_SAMPLING_INTERVAL_MS
+ .ec_rate = CONFIG_GESTURE_SAMPLING_INTERVAL_MS * MSEC,
},
},
},
@@ -355,7 +355,7 @@ struct motion_sensor_t motion_sensors[] = {
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 100000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* unused */
[SENSOR_CONFIG_EC_S3] = {
@@ -389,7 +389,7 @@ struct motion_sensor_t motion_sensors[] = {
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 119000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* unused */
[SENSOR_CONFIG_EC_S3] = {