There is no user of it and also the return type is mismatch
@@ -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
*
@@ -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
@@ -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;