summaryrefslogtreecommitdiff
path: root/ucoo/arch/vector.stm32f4.hh
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/arch/vector.stm32f4.hh')
-rw-r--r--ucoo/arch/vector.stm32f4.hh24
1 files changed, 23 insertions, 1 deletions
diff --git a/ucoo/arch/vector.stm32f4.hh b/ucoo/arch/vector.stm32f4.hh
index 5fe1bae..7015eeb 100644
--- a/ucoo/arch/vector.stm32f4.hh
+++ b/ucoo/arch/vector.stm32f4.hh
@@ -115,7 +115,21 @@
interrupt<Irq::SAI1>, \
interrupt<Irq::LTDC>, \
interrupt<Irq::LTDC_ER>, \
- interrupt<Irq::DMA2D>
+ interrupt<Irq::DMA2D>, \
+ UCOO_VECTOR_IRQ_QUADSPI \
+ UCOO_VECTOR_IRQ_DSI
+
+#ifdef QSPI_R_BASE
+# define UCOO_VECTOR_IRQ_QUADSPI interrupt<Irq::QUADSPI>,
+#else
+# define UCOO_VECTOR_IRQ_QUADSPI
+#endif
+
+#ifdef DSI_BASE
+# define UCOO_VECTOR_IRQ_DSI interrupt<Irq::DSI>,
+#else
+# define UCOO_VECTOR_IRQ_DSI
+#endif
namespace ucoo {
@@ -301,6 +315,14 @@ template<> void interrupt<Irq::LTDC_ER> ()
__attribute__ ((weak, alias ("undefined_handler")));
template<> void interrupt<Irq::DMA2D> ()
__attribute__ ((weak, alias ("undefined_handler")));
+#ifdef QSPI_R_BASE
+template<> void interrupt<Irq::QUADSPI> ()
+ __attribute__ ((weak, alias ("undefined_handler")));
+#endif
+#ifdef DSI_BASE
+template<> void interrupt<Irq::DSI> ()
+ __attribute__ ((weak, alias ("undefined_handler")));
+#endif
} // namespace ucoo