aboutsummaryrefslogtreecommitdiff
path: root/lib/cm3
diff options
context:
space:
mode:
authorchrysn2012-10-18 16:29:58 +0200
committerchrysn2012-10-18 16:29:58 +0200
commit5afa53f01abb3f19e1140d1a6407c43e8b3947cf (patch)
treedf998f6ba98d1526aabb0cc6d09879766d8b6a60 /lib/cm3
parent172ce56e3cbc7e64fd3e6a3dc564eb10e0ca766a (diff)
drop two-line vector.c dispatchers in favor of central dispatch
Diffstat (limited to 'lib/cm3')
-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();
}