mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-05 15:23:03 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user