aboutsummaryrefslogtreecommitdiff
path: root/lib/cm3/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cm3/vector.c')
-rw-r--r--lib/cm3/vector.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cm3/vector.c b/lib/cm3/vector.c
index 200e8e5..7b660f9 100644
--- a/lib/cm3/vector.c
+++ b/lib/cm3/vector.c
@@ -20,6 +20,9 @@
#include <libopencm3/cm3/vector.h>
+/* load optional platform dependent initialization routines */
+#include "../dispatch/vector.c"
+
#define WEAK __attribute__ ((weak))
/* Symbols exported by the linker script(s): */
@@ -70,6 +73,9 @@ void WEAK reset_handler(void)
while (dest < &_ebss)
*dest++ = 0;
+ /* might be provided by platform specific vector.c */
+ pre_main();
+
/* Call the application's entry point. */
main();
}