summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-12 02:48:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-08-12 02:48:34 +0000
commitf7fab60b93dff3a346f4fa0682c6262122b94533 (patch)
treed00362f98b0a747ba424206bdd109d9943faaa43 /nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c
parente77702c946734a2ba495db62cd1f8507b6af5f4b (diff)
downloadnuttx-f7fab60b93dff3a346f4fa0682c6262122b94533.tar.gz
nuttx-f7fab60b93dff3a346f4fa0682c6262122b94533.tar.bz2
nuttx-f7fab60b93dff3a346f4fa0682c6262122b94533.zip
Need to enable global GPIO interrupt after attaching
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2844 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c b/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c
index d49c4b05a..4165a4127 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_gpioirq.c
@@ -255,31 +255,45 @@ int gpio_irqinitialize(void)
g_gpioirqvector[i] = irq_unexpected_isr;
}
- /* Then attach all GPIO interrupt handlers */
+ /* Then attach each GPIO interrupt handlers and enable corresponding GPIO
+ * interrupts
+ */
#ifndef CONFIG_LM3S_DISABLE_GPIOA_IRQS
irq_attach(LM3S_IRQ_GPIOA, lm3s_gpioahandler);
+ up_enable_irq(LM3S_IRQ_GPIOA);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOB_IRQS
irq_attach(LM3S_IRQ_GPIOB, lm3s_gpiobhandler);
+ up_enable_irq(LM3S_IRQ_GPIOB);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOC_IRQS
irq_attach(LM3S_IRQ_GPIOC, lm3s_gpiochandler);
+ up_enable_irq(LM3S_IRQ_GPIOC);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOD_IRQS
irq_attach(LM3S_IRQ_GPIOD, lm3s_gpiodhandler);
+ up_enable_irq(LM3S_IRQ_GPIOD);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOE_IRQS
irq_attach(LM3S_IRQ_GPIOE, lm3s_gpioehandler);
+ up_enable_irq(LM3S_IRQ_GPIOE);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOF_IRQS
irq_attach(LM3S_IRQ_GPIOF, lm3s_gpiofhandler);
+ up_enable_irq(LM3S_IRQ_GPIOF);
#endif
#ifndef CONFIG_LM3S_DISABLE_GPIOG_IRQS
irq_attach(LM3S_IRQ_GPIOG, lm3s_gpioghandler);
+ up_enable_irq(LM3S_IRQ_GPIOG);
#endif
-#if !defined(CONFIG_LM3S_DISABLE_GPIOH_IRQS) && defined(LM3S_GPIOH_BASE)
+#ifndef CONFIG_LM3S_DISABLE_GPIOH_IRQS
irq_attach(LM3S_IRQ_GPIOH, lm3s_gpiohhandler);
+ up_enable_irq(LM3S_IRQ_GPIOH);
+#endif
+#ifndef CONFIG_LM3S_DISABLE_GPIOJ_IRQS
+ irq_attach(LM3S_IRQ_GPIOJ lm3s_gpiohhandler);
+ up_enable_irq(LM3S_IRQ_GPIOJ);
#endif
return OK;