diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-18 01:36:04 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-11-18 01:36:04 +0000 |
commit | 631c85af1216657895832c12d41625f08911a928 (patch) | |
tree | caa8645238a1ce5686a757743c816c5740a3c76e /nuttx/arch/arm/src/lpc17xx/lpc17_irq.c | |
parent | c021964a6bd0319748457772ce8179935f54bbf7 (diff) | |
download | px4-nuttx-631c85af1216657895832c12d41625f08911a928.tar.gz px4-nuttx-631c85af1216657895832c12d41625f08911a928.tar.bz2 px4-nuttx-631c85af1216657895832c12d41625f08911a928.zip |
Add logic to clear pending EMAC interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3118 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_irq.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_irq.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c b/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c index 59802d87d..649db985f 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_irq.c @@ -260,33 +260,6 @@ static int lpc17_irqinfo(int irq, uint32_t *regaddr, uint32_t *bit) } /**************************************************************************** - * Name: lpc17_clrpend - * - * Description: - * Clear a pending interrupt. - * - ****************************************************************************/ - -static inline void lpc17_clrpend(int irq) -{ -#if 0 /* Necessary? */ - /* Check for external interrupt */ - - if (irq >= LPC17_IRQ_EXTINT) - { - if (irq < (LPC17_IRQ_EXTINT+32)) - { - putreg32(1 << (irq - LPC17_IRQ_EXTINT), NVIC_IRQ0_31_CLRPEND); - } - else if (irq < LPC17_IRQ_NIRQS) - { - putreg32(1 << (irq - LPC17_IRQ_EXTINT - 32), NVIC_IRQ32_63_CLRPEND); - } - } -#endif -} - -/**************************************************************************** * Public Functions ****************************************************************************/ @@ -453,7 +426,10 @@ void up_enable_irq(int irq) void up_maskack_irq(int irq) { up_disable_irq(irq); + +#if 0 /* Does not appear to be necessary in most cases */ lpc17_clrpend(irq); +#endif } /**************************************************************************** |