summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2021-03-22 17:30:39 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-29 19:07:38 +0000
commit4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b (patch)
tree21a4edcf7386e94e950acb588540f7f779b9d79e /test
parentf4b27032e1c508b693bba1f2d6572ad14d42f319 (diff)
downloadchrome-ec-4c84afb1cdb1d1da8155f1bc30ea93ecd7b8dd4b.tar.gz
common: motion_sense: Prevent on/off body from waking up device
Introduce a new flag: BYPASS_FIFO to raise an interrupt to the AP when an event is sent. It is not as strong as WAKEUP, as it does not wake up the AP. BYPASS_FIFO must be set when WAKEUP is set. It is applied to sync sensor as well as gesture/activity sensor. BUG=b:123434029 BRANCH=trogdor TEST=Compile Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Change-Id: Id5aba71e6d11ef31f7fa2c67ba2e07178d088b1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2780834 Reviewed-by: Ching-Kang Yen <chingkang@chromium.org> Tested-by: Ching-Kang Yen <chingkang@chromium.org> Commit-Queue: Ching-Kang Yen <chingkang@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/motion_sense_fifo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/motion_sense_fifo.c b/test/motion_sense_fifo.c
index 09d3404032..28e7a3019a 100644
--- a/test/motion_sense_fifo.c
+++ b/test/motion_sense_fifo.c
@@ -348,7 +348,7 @@ void before_test(void)
motion_sense_fifo_commit_data();
motion_sense_fifo_read(sizeof(data), CONFIG_ACCEL_FIFO_SIZE, &data,
&data_bytes_read);
- motion_sense_fifo_reset_wake_up_needed();
+ motion_sense_fifo_reset_needed_flags();
memset(data, 0, sizeof(data));
motion_sense_fifo_reset();
}