*
* -->
*
- * \version $Id$
- *
* \author Francesco Sacchi <batt@develer.com>
*
* \brief Low-level timer module for Atmel AT91 (inplementation).
/** HW dependent timer initialization */
#if (CONFIG_TIMER == TIMER_ON_PIT)
+ ISR_PROTO_CONTEXT_SWITCH(timer_handler);
+
void timer_hw_init(void)
{
sysirq_init();
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 */