the interrupt routines
authorhackbard <hackbard@staubsauger.localdomain>
Sat, 15 Sep 2007 00:58:42 +0000 (02:58 +0200)
committerhackbard <hackbard@staubsauger.localdomain>
Sat, 15 Sep 2007 00:58:42 +0000 (02:58 +0200)
betty/interrupts.c [new file with mode: 0644]
betty/interrupts.h [new file with mode: 0644]

diff --git a/betty/interrupts.c b/betty/interrupts.c
new file mode 100644 (file)
index 0000000..fa1fcc1
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * interrupts.c - arm exception handling
+ *
+ * author: hackbard@hackdaworld.org
+ *
+ */
+
+#include "interrupts.h"
+
+/*
+ * functions
+ */
+
+/*
+ * the actual exception handlers (as defined in startup.s)
+ */
+
+// reset
+void interrupt_handler_reset(void) {
+}
+
+// undefined instruction
+void interrupt_handler_undef_instruction(void) {
+}
+
+// software interrupt
+void interrupt_handler_soft_ir(void) {
+}
+
+// prefetch abort
+void interrupt_handler_prefetch_abort(void) {
+}
+
+// data abort
+void interrupt_handler_data_abort(void) {
+}
+
+// irq
+void interrupt_handler_irq(void) {
+}
+
+// fiq
+void interrupt_handler_fiq(void) {
+}
+
diff --git a/betty/interrupts.h b/betty/interrupts.h
new file mode 100644 (file)
index 0000000..9c1b8aa
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * interrupts.h - arm exception handling header file
+ *
+ * author: hackbard@hackdaworld.org
+ *
+ */
+
+#include "lpc2xxx.h"
+#include "types.h"
+
+/* function prototypes */
+
+void interrupt_handler_reset(void);
+void interrupt_handler_undef_instruction(void);
+void interrupt_handler_soft_ir(void);
+void interrupt_handler_prefetch_abort(void);
+void interrupt_handler_data_abort(void);
+void interrupt_handler_irq(void);
+void interrupt_handler_fiq(void);
+