split irq.yaml output in nvic.h and vector_nvic.h

the weak pragmas need to be used in the very compilation unit where
their target is defined, requiring another dispatch
This commit is contained in:
chrysn
2012-10-18 17:30:18 +02:00
parent 5ceb377a37
commit ae832b4ee8
3 changed files with 25 additions and 7 deletions

View File

@@ -22,6 +22,8 @@
/* load optional platform dependent initialization routines */
#include "../dispatch/vector.c"
/* load the weak symbols for IRQ_HANDLERS */
#include <libopencm3/dispatch/vector_nvic.h>
#define WEAK __attribute__ ((weak))