summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc/bep/fpc_timebase.c
blob: 113e150ed9d702bad8208b9b557b28730588653e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright 2019 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.
 */

/* FPC Platform Abstraction Layer */

#include <stdint.h>

#include "fpc_timebase.h"
#include "timer.h"

uint32_t __unused fpc_timebase_get_tick(void)
{
	clock_t time;

	time = clock();

	return (uint32_t)time;
}

void __unused fpc_timebase_busy_wait(uint32_t ms)
{
	udelay(ms * 1000);
}

void __unused fpc_timebase_init(void)
{
}