aboutsummaryrefslogtreecommitdiff
path: root/system-clock/include/isr_vector.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:09:00 -0700
committerJosh Rahm <joshuarahm@gmail.com>2018-01-15 15:09:00 -0700
commit3b7d25e1586082a7c5d0066a56d80f7c55862e38 (patch)
treef5f6ab68da4b4e4ef4fceecd27b31816545db5ef /system-clock/include/isr_vector.h
parent79c73cd2734d5e3b3c86885ebcb28aa36a2d0f56 (diff)
downloadstm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.tar.gz
stm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.tar.bz2
stm32l4-3b7d25e1586082a7c5d0066a56d80f7c55862e38.zip
broke apart main.c into delay.* and isr_vector.*
Diffstat (limited to 'system-clock/include/isr_vector.h')
-rw-r--r--system-clock/include/isr_vector.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/system-clock/include/isr_vector.h b/system-clock/include/isr_vector.h
new file mode 100644
index 0000000..eee1a51
--- /dev/null
+++ b/system-clock/include/isr_vector.h
@@ -0,0 +1,21 @@
+#ifndef h__ISR_VECTOR_H__
+#define h__ISR_VECTOR_H__
+
+/*
+ * Include file for interrupt service routines.
+ */
+
+/*
+ * The interrupt service routines. These link in the function `main` as the
+ * main function.
+ */
+extern const void* isr_vector[];
+
+
+/*
+ * Defines an error state. This loops forever and defines a distinct flashing
+ * pattern to let the user know an unhandled ISR happened.
+ */
+void unhandled_isr();
+
+#endif /* h___ISR_VECTOR_H__ */