diff options
author | Scott Collyer <scollyer@google.com> | 2017-05-23 16:21:09 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-01 00:51:37 -0700 |
commit | 4166314b472abab61996e558a4826bcbebe75d0b (patch) | |
tree | 9d7963bd731199a9da6668b623cb59c25673193c /include/motion_sense.h | |
parent | 8bf7f3859719741ae694219b53fbfaabb2af04fe (diff) | |
download | chrome-ec-4166314b472abab61996e558a4826bcbebe75d0b.tar.gz |
sensor: Add board specific function for double tap event
The previous boards that used double tap both used lightbar
sequence. Eve, also needs double tap, but doens't have lightbar. Added
a board specific call when processing the double tap event to allow
more flexibility.
BUG=b:35584895
BRANCH=none
TEST=Manual tested double tap and verified it was detected based on
the console print.
Change-Id: I73d8669803e7dcbbbac00de09822f4a286965fce
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/516546
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index c50faba9c1..ef5340122f 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -197,6 +197,12 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data, */ void sensor_init_done(const struct motion_sensor_t *sensor, int range); +/** + * Board specific function that is called when a double_tap event is detected. + * + */ +void sensor_board_proc_double_tap(void); + #ifdef CONFIG_GESTURE_HOST_DETECTION /* Add an extra sensor. We may need to add more */ #define MOTION_SENSE_ACTIVITY_SENSOR_ID (motion_sensor_count) |