diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-08-25 22:58:41 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-08-29 01:34:15 -0700 |
commit | 32867104da45ae38e37163ba6d04f847bc15e6bc (patch) | |
tree | e33a7142343d43eeeabaed6a097304459cde4a83 /include/gesture.h | |
parent | 4e7e1bb796190e658ea2de8d4e391efa59b0d643 (diff) | |
download | chrome-ec-32867104da45ae38e37163ba6d04f847bc15e6bc.tar.gz |
samus: Use new config, fix gesture
Use new config table.
Move ODR setting in motion sense, fix variable names.
BRANCH=samus
BUG=chromium:513458
TEST=Test accelerator and double tap on Samus
Change-Id: I341add11a18de8e4cc97c57da29f9114bd2014cf
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/295638
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/gesture.h')
-rw-r--r-- | include/gesture.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/gesture.h b/include/gesture.h index 901f881b50..d98dc8cdf8 100644 --- a/include/gesture.h +++ b/include/gesture.h @@ -16,4 +16,11 @@ void gesture_calc(void); /* gesture hooks are triggered after the motion sense hooks. */ #define GESTURE_HOOK_PRIO (MOTION_SENSE_HOOK_PRIO + 10) +/* Output datarate for tap sensor (in milli-Hz) */ +/* + * Note: lsm6ds0 accel needs twice the expected data rate in order to guarantee + * that we have a new data sample every reading. + */ +#define TAP_ODR (2 * (1000000 / CONFIG_GESTURE_SAMPLING_INTERVAL_MS)) + #endif /* __CROS_EC_GESTURE_H */ |