Merge branch 'dev'
[bertos.git] / bertos / cpu / arm / drv / timer_at91.c
index 2508b64baa8b30040cd0b8bc4ba606c9dad55314..0e02d8b40356c17f37ded106e6544201e56d6964 100644 (file)
@@ -30,8 +30,6 @@
  *
  * -->
  *
- * \version $Id$
- *
  * \author Francesco Sacchi <batt@develer.com>
  *
  * \brief Low-level timer module for Atmel AT91 (inplementation).
                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 */