diff options
author | Yuval Peress <peress@chromium.org> | 2019-08-13 09:09:02 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-09-27 00:49:46 +0000 |
commit | 36b47ab3c06e477f5e95d6d9e84a5220248784e6 (patch) | |
tree | d4df5bb2b02e09de5494a1eddc84c24e208d9c24 /test/test_config.h | |
parent | 2d74095e5c923e40e6230f803537c1e968fd2631 (diff) | |
download | chrome-ec-36b47ab3c06e477f5e95d6d9e84a5220248784e6.tar.gz |
common: Refactor motion_sense_fifo
This change refactors the motion_sense_fifo to uniformly prefix
all the functions to avoid collisions. It also adds several unit
tests and fixes a few bugs with the fifo logic.
BUG=b:137758297
BRANCH=None
TEST=buildall & run CTS on arcada
Change-Id: I7aae45382b07d6c8858e07215c33e710c7ed27ec
Signed-off-by: Yuval Peress <peress@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704166
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'test/test_config.h')
-rw-r--r-- | test/test_config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_config.h b/test/test_config.h index b83d834056..89c928f1f0 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -82,8 +82,14 @@ #define CONFIG_SHA256 #endif +#ifdef TEST_MOTION_SENSE_FIFO +#define CONFIG_ACCEL_FIFO +#define CONFIG_ACCEL_FIFO_SIZE 256 +#define CONFIG_ACCEL_FIFO_THRES 10 +#endif + #if defined(TEST_MOTION_LID) || defined(TEST_MOTION_ANGLE) || \ - defined(TEST_MOTION_ANGLE_TABLET) + defined(TEST_MOTION_ANGLE_TABLET) || defined(TEST_MOTION_SENSE_FIFO) enum sensor_id { BASE, LID, |