X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fcpu%2Farm%2Fdrv%2Ftimer_at91.c;h=0e02d8b40356c17f37ded106e6544201e56d6964;hb=6fffd0614f75137e8fed424c87835d4e7d478ef7;hp=2508b64baa8b30040cd0b8bc4ba606c9dad55314;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/cpu/arm/drv/timer_at91.c b/bertos/cpu/arm/drv/timer_at91.c index 2508b64b..0e02d8b4 100644 --- a/bertos/cpu/arm/drv/timer_at91.c +++ b/bertos/cpu/arm/drv/timer_at91.c @@ -30,8 +30,6 @@ * * --> * - * \version $Id$ - * * \author Francesco Sacchi * * \brief Low-level timer module for Atmel AT91 (inplementation). @@ -77,6 +75,11 @@ IRQ_RESTORE(flags); } + void timer_hw_cleanup(void) + { + PIT_MR &= ~BV(PITEN); + sysirq_setEnable(SYSIRQ_PIT, false); + } #else #error Unimplemented value for CONFIG_TIMER #endif /* CONFIG_TIMER */