Add function to read hp ticks.
[bertos.git] / bertos / drv / timer.h
index de2680093243d1b47d0ec5884b3c56c94cea13db..0fd030749c80045b4a7cc862188c4c8116c9e112 100644 (file)
@@ -146,6 +146,13 @@ INLINE ticks_t timer_clock_unlocked(void)
        return _clock;
 }
 
+/**
+ */
+INLINE hptime_t timer_clock_hp(void)
+{
+       return timer_hw_hpticks(_clock);
+}
+
 /** Convert \a ms [ms] to ticks. */
 INLINE ticks_t ms_to_ticks(mtime_t ms)
 {