aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Gagniuc2012-12-02 23:06:50 -0600
committerAlexandru Gagniuc2012-12-31 01:35:27 -0600
commit60ceec0266571dee2d17b29c1d83fceafceb3e00 (patch)
treef53115420a41bbcacc9229b27ab1c9a41bc1db5c
parentc1381bf54aac2f092fccf5023c28ff0c4f6f2584 (diff)
lm4f: Compile in the interrupt vector table
Add an "#ifdef(LM4F)" clause to include/libopencm3/dispatch/nvic.h and lib/dispatch/vector_nvic.c. This compiles in the vector table and allows interrupts to be used. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
-rw-r--r--include/libopencm3/dispatch/nvic.h3
-rw-r--r--lib/dispatch/vector_nvic.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h
index 08074e3..c671d09 100644
--- a/include/libopencm3/dispatch/nvic.h
+++ b/include/libopencm3/dispatch/nvic.h
@@ -23,7 +23,8 @@
#elif defined(LPC43XX)
# include <libopencm3/lpc43xx/nvic.h>
-#elif defined(LM3S)
+#elif defined(LM3S) || defined(LM4F)
+/* Yes, we use the same interrupt table for both LM3S and LM4F */
# include <libopencm3/lm3s/nvic.h>
#else
diff --git a/lib/dispatch/vector_nvic.c b/lib/dispatch/vector_nvic.c
index 33104eb..182de4c 100644
--- a/lib/dispatch/vector_nvic.c
+++ b/lib/dispatch/vector_nvic.c
@@ -23,7 +23,8 @@
#elif defined(LPC43XX)
# include "../lpc43xx/vector_nvic.c"
-#elif defined(LM3S)
+#elif defined(LM3S) || defined(LM4F)
+/* Yes, we use the same interrupt table for both LM3S and LM4F */
# include "../lm3s/vector_nvic.c"
#else