summaryrefslogtreecommitdiff
path: root/board/samus
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-05-23 16:21:09 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-01 00:51:37 -0700
commit4166314b472abab61996e558a4826bcbebe75d0b (patch)
tree9d7963bd731199a9da6668b623cb59c25673193c /board/samus
parent8bf7f3859719741ae694219b53fbfaabb2af04fe (diff)
downloadchrome-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 'board/samus')
-rw-r--r--board/samus/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/samus/board.c b/board/samus/board.c
index 62aebc32f2..32fef8ff26 100644
--- a/board/samus/board.c
+++ b/board/samus/board.c
@@ -267,6 +267,11 @@ void board_reset_pd_mcu(void)
gpio_set_level(GPIO_USB_MCU_RST, 0);
}
+void sensor_board_proc_double_tap(void)
+{
+ lightbar_sequence(LIGHTBAR_TAP);
+}
+
const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = {
GPIO_USB1_ENABLE,
GPIO_USB2_ENABLE,