From 6b5a49ef15354c5b31be51f32006dbb4d7dc7c62 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Sun, 30 Aug 2015 21:07:03 -0700 Subject: motion: Add Gesture Interface Add an interface with the host to set up gesture recognition. Today, only significant motion is supported. Add a virtual sensor for concentrating gesture support from host. BRANCH=smaug BUG=b:23570481 TEST=On ryu, enable significant motion from host. Change-Id: I906fa2d2d7b4ca2771ea2f58b91de8d97bf4e2e3 Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/296213 --- include/motion_sense.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/motion_sense.h') diff --git a/include/motion_sense.h b/include/motion_sense.h index 4185573b41..ec2219a0e3 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -177,4 +177,12 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data, int valid_data); #endif + +#ifdef CONFIG_GESTURE_HOST_DETECTION +/* Add an extra sensor. We may need to add more */ +#define MOTION_SENSE_ACTIVITY_SENSOR_ID (motion_sensor_count) +#define ALL_MOTION_SENSORS (MOTION_SENSE_ACTIVITY_SENSOR_ID + 1) +#else +#define ALL_MOTION_SENSORS motion_sensor_count +#endif #endif /* __CROS_EC_MOTION_SENSE_H */ -- cgit v1.2.1