mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
27 lines
799 B
C
27 lines
799 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Header for gesture.c */
|
|
|
|
#ifndef __CROS_EC_GESTURE_H
|
|
#define __CROS_EC_GESTURE_H
|
|
|
|
/**
|
|
* Run gesture detection engine. Modify the event flag when gestures are found.
|
|
*/
|
|
void gesture_calc(uint32_t *event);
|
|
|
|
/* gesture hooks are triggered after the motion sense hooks. */
|
|
#define GESTURE_HOOK_PRIO (MOTION_SENSE_HOOK_PRIO + 10)
|
|
|
|
/* Output datarate for tap sensor (in milli-Hz) */
|
|
/*
|
|
* Note: lsm6ds0 accel needs twice the expected data rate in order to guarantee
|
|
* that we have a new data sample every reading.
|
|
*/
|
|
#define TAP_ODR (2 * (1000000 / CONFIG_GESTURE_SAMPLING_INTERVAL_MS))
|
|
|
|
#endif /* __CROS_EC_GESTURE_H */
|