diff options
author | Yuval Peress <peress@chromium.org> | 2019-08-13 09:09:02 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-21 03:00:30 +0000 |
commit | 221567878baa7f143a2b3d3e54c343d2858c80ad (patch) | |
tree | 35461447202da51e548df0ffc098bd49409eee20 /test/test_config.h | |
parent | c918b1288cd976248ec70731a82fbdc7e90b3d71 (diff) | |
download | chrome-ec-221567878baa7f143a2b3d3e54c343d2858c80ad.tar.gz |
Reland "common: Refactor motion_sense_fifo"
This is a reland of 2f6bf961911c87ce7d2007b6695f3885155ad431
Original change's description:
> 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=kukui
> TEST=buildall
> TEST=run CTS on arcada, kohaku, and kukui
> TEST=boot kohaku (verify tablet mode works as expected)
>
> Change-Id: I6e8492ae5fa474d0aa870088ab56f76b220a73e3
> Signed-off-by: Yuval Peress <peress@chromium.org>
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1835221
> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
> (cherry picked from commit 083ced83d71a6ab60204c7ada6c22d9c82731713)
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1910376
> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
> Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
> Tested-by: Eric Yilun Lin <yllin@chromium.org>
Bug: b:137758297
Change-Id: I5d16133deb13e9433ad3868e9bce5655fd8d61b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1928412
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@chromium.org>
Tested-by: Eric Yilun Lin <yllin@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 c422143112..acf890beb8 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, |