summaryrefslogtreecommitdiff
path: root/src/stm/ao_flash_loader_stm.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-02-01 00:06:30 -0800
committerKeith Packard <keithp@keithp.com>2014-02-08 20:13:38 -0800
commitd6d56c20465455b759f60a03fc96aa228ab9102e (patch)
tree3ce6816f52695cdc9dbede972d908ba7a7d90682 /src/stm/ao_flash_loader_stm.c
parent1d3420e51db4d1a46237e97aeb189d2a8eba7f5e (diff)
altos: Enable system timer in flash loader and prod watchdog with it
This makes it possible to reflash the board without needing to disable the watchdog. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_flash_loader_stm.c')
-rw-r--r--src/stm/ao_flash_loader_stm.c7
1 files changed, 7 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;
}