remove unneed function. Use hpread in context switch benchmark.
[bertos.git] / bertos / cpu / cortex-m3 / drv / timer_cm3.h
index 3e47d294912bacc447ad4b1bc628001ed79a24b5..1ee8b7a2a3bc4263f3878c70b3ccf3ba8ec9ed41 100644 (file)
 
        INLINE hptime_t timer_hw_hpread(void)
        {
-               return NVIC_ST_CURRENT_R;
-       }
-
-       INLINE hptime_t timer_hw_hpticks(ticks_t clock)
-       {
-               return (TIMER_HW_CNT - timer_hw_hpread()) + clock * TIMER_HW_CNT;
+               return (TIMER_HW_CNT - NVIC_ST_CURRENT_R);
        }
 
 #else