summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
Diffstat (limited to 'board')
-rw-r--r--board/glados/board.c6
-rw-r--r--board/kunimitsu/board.c4
-rw-r--r--board/lars/board.c4
-rw-r--r--board/samus/board.c10
-rw-r--r--board/strago/board.c4
-rw-r--r--board/wheatley/board.c4
6 files changed, 16 insertions, 16 deletions
diff --git a/board/glados/board.c b/board/glados/board.c
index 0ea36b3e1e..490d8ebb52 100644
--- a/board/glados/board.c
+++ b/board/glados/board.c
@@ -517,7 +517,7 @@ struct motion_sensor_t motion_sensors[] = {
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 10000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
@@ -582,12 +582,12 @@ struct motion_sensor_t motion_sensors[] = {
/* AP: by default use EC settings */
[SENSOR_CONFIG_AP] = {
.odr = 10000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 10000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* unused */
[SENSOR_CONFIG_EC_S3] = {
diff --git a/board/kunimitsu/board.c b/board/kunimitsu/board.c
index 07c561715e..287e4bcd91 100644
--- a/board/kunimitsu/board.c
+++ b/board/kunimitsu/board.c
@@ -248,7 +248,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
@@ -282,7 +282,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
diff --git a/board/lars/board.c b/board/lars/board.c
index c2c1c62461..bf96d2b8bb 100644
--- a/board/lars/board.c
+++ b/board/lars/board.c
@@ -207,7 +207,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
@@ -241,7 +241,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
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] = {
diff --git a/board/strago/board.c b/board/strago/board.c
index 270882b8b0..ae4cb51ea6 100644
--- a/board/strago/board.c
+++ b/board/strago/board.c
@@ -236,7 +236,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
@@ -270,7 +270,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,
},
/* Sensor off in S3/S5 */
[SENSOR_CONFIG_EC_S3] = {
diff --git a/board/wheatley/board.c b/board/wheatley/board.c
index e63ac3b89e..d00bcc623d 100644
--- a/board/wheatley/board.c
+++ b/board/wheatley/board.c
@@ -535,12 +535,12 @@ struct motion_sensor_t motion_sensors[] = {
/* AP: by default use EC settings */
[SENSOR_CONFIG_AP] = {
.odr = 10000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* EC use accel for angle detection */
[SENSOR_CONFIG_EC_S0] = {
.odr = 10000 | ROUND_UP_FLAG,
- .ec_rate = 100,
+ .ec_rate = 100 * MSEC,
},
/* unused */
[SENSOR_CONFIG_EC_S3] = {