summaryrefslogtreecommitdiff
path: root/driver/sync.h
blob: 1f6115a086c3503222a22f8c0958bbd2be31521e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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 */