summaryrefslogtreecommitdiff
path: root/test/motion_common.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-11-06 10:21:07 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-23 05:57:46 +0000
commit4a399faf37a8c14797ea9f60e6430e678e6f8a15 (patch)
treed31adb415749d7292f83406eee29421e787e1cbd /test/motion_common.c
parent0dc8b304f1a4857e4897fe40ae0fe7821a9f8c51 (diff)
downloadchrome-ec-4a399faf37a8c14797ea9f60e6430e678e6f8a15.tar.gz
test: motion: Update test to match motion_sense
Put sensors in forced mode, since interrupts are not generated in test mode. Remove unnecessary task wakeup, since motion sense are sending them. Fix comments and remove empty code. BUG=b:170703322 BRANCH=kukui TEST=unittest Change-Id: Ic9096998a29cebeb47bed5cc2c148b7743f6c78f Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2523295 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'test/motion_common.c')
-rw-r--r--test/motion_common.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/motion_common.c b/test/motion_common.c
index 4efa407b9f..135da43188 100644
--- a/test/motion_common.c
+++ b/test/motion_common.c
@@ -138,7 +138,6 @@ void wait_for_valid_sample(void)
sample = *lpc_status & EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK;
usleep(TEST_LID_EC_RATE);
- task_wake(TASK_ID_MOTIONSENSE);
while ((*lpc_status & EC_MEMMAP_ACC_STATUS_SAMPLE_ID_MASK) == sample)
usleep(TEST_LID_SLEEP_RATE);
}