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