summaryrefslogtreecommitdiff
path: root/src/stm
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm')
-rw-r--r--src/stm/ao_flash_loader_stm.c7
-rw-r--r--src/stm/ao_timer.c3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/stm/ao_flash_loader_stm.c b/src/stm/ao_flash_loader_stm.c
index 2ab548cf..6bf89234 100644
--- a/src/stm/ao_flash_loader_stm.c
+++ b/src/stm/ao_flash_loader_stm.c
@@ -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;
}
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c
index 34f9edb9..d93531fc 100644
--- a/src/stm/ao_timer.c
+++ b/src/stm/ao_timer.c
@@ -53,6 +53,9 @@ void stm_systick_isr(void)
#endif
}
#endif
+#ifdef AO_TIMER_HOOK
+ AO_TIMER_HOOK;
+#endif
}
}