diff options
author | Konstantin Porotchkin <kostap@marvell.com> | 2017-03-20 15:26:10 +0200 |
---|---|---|
committer | Konstantin Porotchkin <kostap@marvell.com> | 2017-04-02 17:32:57 +0300 |
commit | a5eeac6a2352e926722b801cfead7af1e92a55a1 (patch) | |
tree | eb1da1aa38571062126fa008c0f52d21ff472b1e /include/drivers | |
parent | 63017c781538feebc631eadb40754c91074200f2 (diff) |
delay_timer: Add timer value get functions
Add ability to get timer value in micro- and milliseconds.
Change-Id: I864619c23fe8a2a01cef86795e39d1b0bfd2e3d3
Signed-off-by: Victor Axelrod <victora@marvell.com>
Signed-off-by: Ofir Fedida <ofedida@marvell.com>
Signed-off-by: Konstantin Porotchkin <kostap@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/37913
Reviewed-by: Haim Boot <hayim@marvell.com>
Diffstat (limited to 'include/drivers')
-rw-r--r-- | include/drivers/delay_timer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drivers/delay_timer.h b/include/drivers/delay_timer.h index 0dec626c..d3bf3e32 100644 --- a/include/drivers/delay_timer.h +++ b/include/drivers/delay_timer.h @@ -47,6 +47,8 @@ typedef struct timer_ops { uint32_t clk_div; } timer_ops_t; +uint32_t timer_value_get(void); +uint32_t timer_value_ms_get(void); void mdelay(uint32_t msec); void udelay(uint32_t usec); void timer_init(const timer_ops_t *ops); |