altos: Enable system timer in flash loader and prod watchdog with it
[fw/altos] / src / stm / ao_flash_loader_stm.c
index 2ab548cfa452a4fdfc2706e6b08125d61d3f8c04..6bf89234b702a18a9d9caa1a64b7ff9e84e1e463 100644 (file)
@@ -27,6 +27,13 @@ main(void)
 
        ao_usb_init();
 
+#if HAS_TICK
+       ao_timer_init();
+#endif
+
+#ifdef AO_FLASH_LOADER_INIT
+       AO_FLASH_LOADER_INIT;
+#endif 
        ao_flash_task();
        return 0;
 }