diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2015-09-01 15:25:01 -0700 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-09-20 19:10:56 +0000 |
commit | 9889b95d91af08a659beb1670599cbf7fcc60004 (patch) | |
tree | 3f9c001b9a880e0ee94e19d9809b6076d18d1102 /board | |
parent | 849067bd81e9d15f18d522c52d022fda229956e1 (diff) | |
download | chrome-ec-9889b95d91af08a659beb1670599cbf7fcc60004.tar.gz |
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 <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/296822
Reviewed-by: Alec Berg <alecaberg@chromium.org>
(cherry picked from commit bde89ebc203d9d15ede2cefb3eea8511d1fc3b65)
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/301309
Diffstat (limited to 'board')
-rw-r--r-- | board/samus/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/samus/board.h b/board/samus/board.h index 84b20a8868..9a2022906c 100644 --- a/board/samus/board.h +++ b/board/samus/board.h @@ -205,6 +205,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 |