X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Ftimer_at91.c;h=f1c2887e2b0fe47b850a9ba803b1b2b7a6e91251;hb=1fc71821dbce1d85a5d5227bd9e6580b573e8eba;hp=b3db6a0fd3d5f37aa94da2ba6bf2869bc6553987;hpb=e62ca0b357f09804d7d894949df44224c9d74bb7;p=bertos.git diff --git a/bertos/cpu/arm/drv/timer_at91.c b/bertos/cpu/arm/drv/timer_at91.c index b3db6a0f..f1c2887e 100644 --- a/bertos/cpu/arm/drv/timer_at91.c +++ b/bertos/cpu/arm/drv/timer_at91.c @@ -49,19 +49,8 @@ /** HW dependent timer initialization */ #if (CONFIG_TIMER == TIMER_ON_PIT) - INLINE void timer_hw_irq(void) - { - /* Reset counters, this is needed to reset timer and interrupt flags */ - uint32_t dummy = PIVR; - (void) dummy; - } - - INLINE bool timer_hw_triggered(void) - { - return PIT_SR & BV(PITS); - } - INLINE void timer_hw_init(void) + void timer_hw_init(void) { sysirq_init(); @@ -86,12 +75,6 @@ IRQ_RESTORE(flags); } - INLINE hptime_t timer_hw_hpread(void) - { - /* In the upper part of PIT_PIIR there is unused data */ - return PIIR & CPIV_MASK; - } - #else #error Unimplemented value for CONFIG_TIMER #endif /* CONFIG_TIMER */