mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-29 02:28:35 +08:00
Remove rt_ktime_hrtimer_getcnt for hrtimer
There is no user of it and also the return type is mismatch
This commit is contained in:
@@ -338,11 +338,6 @@ uint64_t rt_ktime_hrtimer_getres(void)
|
|||||||
return ((1000UL * 1000 * 1000) * RT_KTIME_RESMUL) / (24 * 1000 * 1000UL);
|
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
|
* @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);
|
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
|
* @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;
|
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)
|
rt_weak rt_err_t rt_ktime_hrtimer_settimeout(unsigned long cnt)
|
||||||
{
|
{
|
||||||
static rt_timer_t timer = RT_NULL;
|
static rt_timer_t timer = RT_NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user