mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
a7b8176999
The include/common.h is a collection of unrelated declarations, macros, etc. It is horrible to include such a cluttered header just for some timer functions. Split out timer functions into include/time.h. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
16 lines
337 B
C
16 lines
337 B
C
/*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _TIME_H
|
|
#define _TIME_H
|
|
|
|
unsigned long get_timer(unsigned long base);
|
|
|
|
/*
|
|
* Return the current value of a monotonically increasing microsecond timer.
|
|
* Granularity may be larger than 1us if hardware does not support this.
|
|
*/
|
|
unsigned long timer_get_us(void);
|
|
|
|
#endif /* _TIME_H */
|