Skip to content

Commit c448a01

Browse files
committed
Remove rt_ktime_hrtimer_getcnt for hrtimer
There is no user of it
1 parent 54e4c30 commit c448a01

File tree

3 files changed

+0
-17
lines changed

3 files changed

+0
-17
lines changed

bsp/rockchip/rk3500/driver/hwtimer/hwtimer-rockchip_timer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,6 @@ rt_uint64_t rt_ktime_hrtimer_getfrq(void)
333333
return (24 * 1000 * 1000UL);
334334
}
335335

336-
uint64_t rt_ktime_hrtimer_getcnt(void)
337-
{
338-
return rk_timer_current_value(_timer0.timer);
339-
}
340-
341336
/**
342337
* @brief set the timeout function for hrtimer framework
343338
*

components/drivers/ktime/inc/ktime.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ void rt_ktime_cputimer_init(void);
8383
*/
8484
rt_uint64_t rt_ktime_hrtimer_getfrq(void);
8585

86-
/**
87-
* @brief Get hrtimer the value of the cnt counter
88-
*
89-
* @return cnt
90-
*/
91-
unsigned long rt_ktime_hrtimer_getcnt(void);
92-
9386
/**
9487
* @brief set hrtimer interrupt timeout count (cnt), you should re-implemented it in hrtimer device driver
9588
*

components/drivers/ktime/src/hrtimer.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ rt_weak rt_uint64_t rt_ktime_hrtimer_getfrq(void)
3232
return RT_TICK_PER_SECOND;
3333
}
3434

35-
rt_weak unsigned long rt_ktime_hrtimer_getcnt(void)
36-
{
37-
return rt_tick_get();
38-
}
39-
4035
rt_weak rt_err_t rt_ktime_hrtimer_settimeout(rt_uint64_t cnt)
4136
{
4237
static rt_timer_t timer = RT_NULL;

0 commit comments

Comments
 (0)