summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorYonggang Luo <[email protected]>2025-09-27 08:11:53 +0800
committerR b b666 <[email protected]>2025-10-21 10:25:41 +0800
commitd3e0a532036c0031c2a000cdc14e536e747abbfd (patch)
tree834cff0f6377467492480919fd6f1eaeda847541 /components
parent1efceab0711f741c649730dd5c6c04ab96881bad (diff)
Remove rt_ktime_hrtimer_getcnt for hrtimer
There is no user of it and also the return type is mismatch
Diffstat (limited to 'components')
-rw-r--r--components/drivers/ktime/inc/ktime.h7
-rw-r--r--components/drivers/ktime/src/hrtimer.c5
2 files changed, 0 insertions, 12 deletions
diff --git a/components/drivers/ktime/inc/ktime.h b/components/drivers/ktime/inc/ktime.h
index d8404e5ece..bd69430567 100644
--- a/components/drivers/ktime/inc/ktime.h
+++ b/components/drivers/ktime/inc/ktime.h
@@ -107,13 +107,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
*
* @param cnt: hrtimer requires a timing cnt value
diff --git a/components/drivers/ktime/src/hrtimer.c b/components/drivers/ktime/src/hrtimer.c
index 728770ad46..ca579a5e98 100644
--- a/components/drivers/ktime/src/hrtimer.c
+++ b/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;