From: hackbard Date: Sat, 15 Sep 2007 00:58:42 +0000 (+0200) Subject: the interrupt routines X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=commitdiff_plain;h=6543545b048b7059941b0f6680227ec4ce26535e the interrupt routines --- diff --git a/betty/interrupts.c b/betty/interrupts.c new file mode 100644 index 0000000..fa1fcc1 --- /dev/null +++ b/betty/interrupts.c @@ -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 index 0000000..9c1b8aa --- /dev/null +++ b/betty/interrupts.h @@ -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); +