diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 20:50:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-14 20:50:43 +0000 |
commit | 6ef9860d17c1a56a82e225c2dd3828a3e36d890a (patch) | |
tree | f477f6a8cf1e152801f1e863b322de1378bf53cf /nuttx/arch/arm/src/lm3s/lm3s_irq.c | |
parent | ee00fd9d222a61ca9a36197a0bd618f4ac36e7fd (diff) | |
download | px4-nuttx-6ef9860d17c1a56a82e225c2dd3828a3e36d890a.tar.gz px4-nuttx-6ef9860d17c1a56a82e225c2dd3828a3e36d890a.tar.bz2 px4-nuttx-6ef9860d17c1a56a82e225c2dd3828a3e36d890a.zip |
Add GPIO IRQ logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1779 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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_irq.c b/nuttx/arch/arm/src/lm3s/lm3s_irq.c index 80bb33503..def4ce391 100644 --- a/nuttx/arch/arm/src/lm3s/lm3s_irq.c +++ b/nuttx/arch/arm/src/lm3s/lm3s_irq.c @@ -175,6 +175,17 @@ void up_irqinitialize(void) current_regs = NULL; + /* Initialize support for GPIO interrupts if included in this build */ + +#ifndef CONFIG_LM3S_DISABLE_GPIO_IRQS +#ifdef CONFIG_HAVE_WEAKFUNCTIONS + if (gpio_irqinitialize != NULL) +#endif + { + gpio_irqinitialize(); + } +#endif + /* Attach the PendSV exception handler and set it to the minimum * prioirity. The PendSV exception is used for performing * context switches. |