diff options
Diffstat (limited to 'driver/fingerprint/fpc/bep/fpc_timebase.c')
-rw-r--r-- | driver/fingerprint/fpc/bep/fpc_timebase.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/bep/fpc_timebase.c b/driver/fingerprint/fpc/bep/fpc_timebase.c new file mode 100644 index 0000000000..113e150ed9 --- /dev/null +++ b/driver/fingerprint/fpc/bep/fpc_timebase.c @@ -0,0 +1,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) +{ +} |