diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 18:55:22 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 18:55:22 +0000 |
commit | ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd (patch) | |
tree | 65cf0925abffaf13aa9d17f2406092aa8f90578e /nuttx/arch/arm/src/lm3s/lm3s_irq.c | |
parent | 2fc7c368483da2c5a2310734447dcf299915aff9 (diff) | |
download | px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.tar.gz px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.tar.bz2 px4-nuttx-ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd.zip |
Add basic lm3s6918 gpio support
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1778 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_irq.c')
-rw-r--r-- | nuttx/arch/arm/src/lm3s/lm3s_irq.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_irq.c b/nuttx/arch/arm/src/lm3s/lm3s_irq.c index 4b3c404e0..80bb33503 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_irq.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_irq.c @@ -40,7 +40,9 @@ #include <nuttx/config.h> #include <sys/types.h> + #include <nuttx/irq.h> +#include <nuttx/arch.h> #include "up_arch.h" #include "os_internal.h" @@ -173,13 +175,17 @@ void up_irqinitialize(void) current_regs = NULL; - /* Attach the PendSV exception handler. This is used for performing + /* Attach the PendSV exception handler and set it to the minimum + * prioirity. The PendSV exception is used for performing * context switches. */ irq_attach(LMSB_IRQ_PENDSV, lm3s_pendsv); +#ifdef CONFIG_ARCH_IRQPRIO + up_prioritize_irq(LMSB_IRQ_PENDSV, NVIC_SYSH_PRIORITY_MIN); +#endif - /* Attach all processor exceptions (except reset and sys tick) */ + /* Attach all other processor exceptions (except reset and sys tick) */ #ifdef CONFIG_DEBUG irq_attach(LMSB_IRQ_NMI, lm3s_nmi); @@ -285,7 +291,7 @@ int up_prioritize_irq(int irq, int priority) uint32 regval; int shift; - DEBUGASSERT(irq >= LMSB_IRQ_MPU && irq < NR_IRQS && (unsigned)priority <= NVIC_SYSH_PRIORITY_MAX); + DEBUGASSERT(irq >= LMSB_IRQ_MPU && irq < NR_IRQS && (unsigned)priority <= NVIC_SYSH_PRIORITY_MIN); if (irq < LM3S_IRQ_INTERRUPTS) { |