This must be called to stop the system timer in the bootloader before
jumping into the application.
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5215
38d2e660-2303-0410-9eaa-
f027e97ec537
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 */
#endif /* CONFIG_TIMER */
void timer_hw_init(void);
+void timer_hw_cleanup(void);
#endif /* DRV_TIMER_AT91_H */
}
-#if (ARCH & ARCH_EMUL)
+#if (ARCH & ARCH_EMUL) || (CPU_ARM_AT91)
/**
* Stop timer (only used by emulator)
*/