diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-07 23:34:48 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-07 23:34:48 +0000 |
commit | 2ec8b9a0f5c8b7e7590cc5a7cc793eb249f449fe (patch) | |
tree | 0657bd5d2fe69185a4439dc25ed1b5a725878d97 /nuttx/arch/c5471/src/up_doirq.c | |
parent | 1f754edf772673bababe1dc42dad095208525230 (diff) | |
download | px4-nuttx-2ec8b9a0f5c8b7e7590cc5a7cc793eb249f449fe.tar.gz px4-nuttx-2ec8b9a0f5c8b7e7590cc5a7cc793eb249f449fe.tar.bz2 px4-nuttx-2ec8b9a0f5c8b7e7590cc5a7cc793eb249f449fe.zip |
Working with c5471 interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@42 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/c5471/src/up_doirq.c')
-rw-r--r-- | nuttx/arch/c5471/src/up_doirq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/arch/c5471/src/up_doirq.c b/nuttx/arch/c5471/src/up_doirq.c index 339b28596..48cbd3e4a 100644 --- a/nuttx/arch/c5471/src/up_doirq.c +++ b/nuttx/arch/c5471/src/up_doirq.c @@ -41,7 +41,9 @@ #include <sys/types.h> #include <nuttx/irq.h> #include <nuttx/arch.h> +#include <assert.h> #include "c5471.h" +#include "os_internal.h" #include "up_internal.h" /************************************************************ @@ -66,6 +68,9 @@ void up_doirq(int irq, uint32* regs) { +#ifdef CONFIG_SUPPRESS_INTERRUPTS + PANIC(OSERR_ERREXCEPTION); +#else if ((unsigned)irq < NR_IRQS) { /* Mask and acknowledge the interrupt */ @@ -80,4 +85,5 @@ void up_doirq(int irq, uint32* regs) up_enable_irq(irq); } +#endif } |