Procházet zdrojové kódy

Remove rt_ktime_hrtimer_getcnt for hrtimer

There is no user of it and also the return type is mismatch
Yonggang Luo před 4 měsíci
rodič
revize
d3e0a53203

+ 0 - 5
bsp/rockchip/rk3500/driver/hwtimer/hwtimer-rockchip_timer.c

@@ -338,11 +338,6 @@ uint64_t rt_ktime_hrtimer_getres(void)
     return ((1000UL * 1000 * 1000) * RT_KTIME_RESMUL) / (24 * 1000 * 1000UL);
 }
 
-uint64_t rt_ktime_hrtimer_getcnt(void)
-{
-    return rk_timer_current_value(_timer0.timer);
-}
-
 /**
  * @brief set the timeout function for hrtimer framework
  *

+ 0 - 7
components/drivers/ktime/inc/ktime.h

@@ -106,13 +106,6 @@ rt_uint64_t rt_ktime_hrtimer_getres(void);
  */
 unsigned long rt_ktime_hrtimer_getfrq(void);
 
-/**
- * @brief Get hrtimer the value of the cnt counter
- *
- * @return cnt
- */
-unsigned long rt_ktime_hrtimer_getcnt(void);
-
 /**
  * @brief set hrtimer interrupt timeout count (cnt), you should re-implemented it in hrtimer device driver
  *

+ 0 - 5
components/drivers/ktime/src/hrtimer.c

@@ -43,11 +43,6 @@ rt_weak unsigned long rt_ktime_hrtimer_getfrq(void)
     return RT_TICK_PER_SECOND;
 }
 
-rt_weak unsigned long rt_ktime_hrtimer_getcnt(void)
-{
-    return rt_tick_get();
-}
-
 rt_weak rt_err_t rt_ktime_hrtimer_settimeout(unsigned long cnt)
 {
     static rt_timer_t timer = RT_NULL;