From bde89ebc203d9d15ede2cefb3eea8511d1fc3b65 Mon Sep 17 00:00:00 2001 From: Gwendal Grignou Date: Tue, 1 Sep 2015 15:25:01 -0700 Subject: common: motion: move gesture actions in motion task. Change the IRQ interface to allow adding events. Move code to send the lightbar sequence from gesture.c to motion task. TEST=compile, works on Ryu. BRANCH=smaug BUG=chrome-os-partner:44754 Change-Id: I981ea123ebef0e8e3d6aa320eade89f10e83b6fc Signed-off-by: Gwendal Grignou Reviewed-on: https://chromium-review.googlesource.com/296822 Reviewed-by: Alec Berg --- board/samus/board.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'board/samus') diff --git a/board/samus/board.h b/board/samus/board.h index a2aa81e410..d7fba7588f 100644 --- a/board/samus/board.h +++ b/board/samus/board.h @@ -209,6 +209,8 @@ void set_pp5000_in_g3(int mask, int enable); #define CONFIG_GESTURE_TAP_INNER_WINDOW_T 30 #define CONFIG_GESTURE_TAP_MIN_INTERSTICE_T 120 #define CONFIG_GESTURE_TAP_MAX_INTERSTICE_T 500 +/* event 2 to 9 are reserved for hardware interrupt */ +#define CONFIG_GESTURE_TAP_EVENT TASK_EVENT_CUSTOM(1024) #define CONFIG_LID_ANGLE_SENSOR_BASE 0 #define CONFIG_LID_ANGLE_SENSOR_LID 1 -- cgit v1.2.1