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