aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/efm32/tinygecko/Makefile
diff options
context:
space:
mode:
authorchrysn2012-10-18 13:30:19 +0200
committerchrysn2012-10-18 13:31:17 +0200
commit172ce56e3cbc7e64fd3e6a3dc564eb10e0ca766a (patch)
treeb26153bbc41374e35370214a765b87b25bc01c33 /include/libopencm3/efm32/tinygecko/Makefile
parent7c33025c318bcc43cfcd3a23a76d14b299fecc0a (diff)
parent94ce82396bd69dfde8807dad27e23f30913247aa (diff)
nvic unification
* created include/libopencm3/cm3/nvic.h from the respective stm32 and lpc43xx files. the chip specific definitions were left in place (they were already split out in sthe stm32 case). * created lib/cm3/nvic.c from the respective stm32 and lpc43xx files. a hack from the lpc43xx was taken over (for manipulating the internal interrupts); for now it'll work. * created a include/libopencm3/dispatch/ directory where the dispatching of files with common interfaces but different implenentations can happen; for now, an nvic.h there includes the respective irq name definitions. (future implementations might have some automation or preprocessor magic there; so far, it's manual dispatching based on defines.) * for efm32, an nvic.h gets generated from an interrupt list, the rationale for code generation is, in this case, that this can't be done easily in c preprocessor, and it's really just a list of definitions and not code proper. * examples now include <libopencm3/cm3/nvic.h> instead of <libopencm3/stm32/nvic.h>
Diffstat (limited to 'include/libopencm3/efm32/tinygecko/Makefile')
-rw-r--r--include/libopencm3/efm32/tinygecko/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libopencm3/efm32/tinygecko/Makefile b/include/libopencm3/efm32/tinygecko/Makefile
new file mode 100644
index 0000000..4ac5347
--- /dev/null
+++ b/include/libopencm3/efm32/tinygecko/Makefile
@@ -0,0 +1,2 @@
+nvic.h: irq.yaml
+ ./irq2nvic_h