Files
OpenCellular/driver/sync.h
Alexandru M Stan 4a1d2e3daf sensors: Add driver for SYNC
Useful for recording the exact time a gpio interrupt happened in the
context of sensors.

Adding it for camera vsync purposes.

BUG=b:67743747
TEST=With next patch see it work on scarlet.
BRANCH=master

Change-Id: Ic8e8fb444e08200e5d8daded8b4a5920b13431ac
Signed-off-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/850580
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
2018-03-14 04:06:53 -07:00

19 lines
516 B
C

/* Copyright 2017 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.
*
* Sync event driver.
* Useful for recording the exact time a gpio interrupt happened in the
* context of sensors. Originally created for a camera vsync signal.
*/
#ifndef __CROS_EC_VSYNC_H
#define __CROS_EC_VSYNC_H
extern const struct accelgyro_drv sync_drv;
void sync_interrupt(enum gpio_signal signal);
#endif /* __CROS_EC_VSYNC_H */