aboutsummaryrefslogtreecommitdiff
path: root/lib/dispatch/vector.c
diff options
context:
space:
mode:
authorchrysn2012-10-18 18:00:28 +0200
committerchrysn2012-10-18 18:00:28 +0200
commit771f504757e0ac5553c95308ce66412b417fa8d1 (patch)
treea46efc5067f2bec546514cdfccaddd0587cc6268 /lib/dispatch/vector.c
parent172ce56e3cbc7e64fd3e6a3dc564eb10e0ca766a (diff)
parentc69916ffb6d515b1dd644830ba27daef4fc75b58 (diff)
vector.c unification
this makes the previous hackish vector.c assemblies into dispatched files (using the same mechanism as for nvic, just this time in lib). the old irq.h files that were generated manually from the old vector.c files were dropped in the process, as were the nvic.h files, and replaced with very simple yaml lists that generate the headers. file generation takes place both in the include/ and the lib/ part, as some of it is definitely header stuff (the NVIC_name_IRQ defines), and some of it needs to be included in specific compilation units (the weak pragmas).
Diffstat (limited to 'lib/dispatch/vector.c')
-rw-r--r--lib/dispatch/vector.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/dispatch/vector.c b/lib/dispatch/vector.c
new file mode 100644
index 0000000..baab436
--- /dev/null
+++ b/lib/dispatch/vector.c
@@ -0,0 +1,11 @@
+#if defined(STM32F4)
+# include "../stm32/f4/vector.c"
+
+#elif defined(LPC43XX)
+# include "../lpc43xx/vector.c"
+
+#else
+
+static void pre_main(void) {}
+
+#endif