arch/arm/src/lpc11xx/lpc11_irq.c
/****************************************************************************
 * Name: lpc11_clrpend
 *
 * Description:
 *   Clear a pending interrupt at the NVIC.
 *
 ****************************************************************************/
lpc11_clrpend
Description:
Clear a pending interrupt at the NVIC.
lpc11_clrpend Description : Clear a pending interrupt at the NVIC .
static inline void lpc11_clrpend(int irq)
{
  DEBUGASSERT((unsigned)irq < NR_IRQS);
  if (irq >= LPC11_IRQ_EXTINT && irq < (LPC11_IRQ_EXTINT + 32))
    {
      putreg32((1 << (irq - LPC11_IRQ_EXTINT)), ARMV6M_NVIC_ICPR);
    }
}
static inline void lpc11_clrpend ( int irq ) { DEBUGASSERT ( ( unsigned ) irq < NR_IRQS ) ; if ( irq >= LPC11_IRQ_EXTINT && irq < ( LPC11_IRQ_EXTINT + 32 ) ) { putreg32 ( ( 1 << ( irq - LPC11_IRQ_EXTINT ) ) , ARMV6M_NVIC_ICPR ) ; } }
Name: lpc11_clrpend
 Description:
   Clear a pending interrupt at the NVIC.
Name : lpc11_clrpend Description : Clear a pending interrupt at the NVIC .
/* This will be called on each interrupt exit whether the interrupt can be
   * enambled or not.  So this assertion is necessarily lame.
   */ /* Check for an external interrupt */ /* Set the appropriate bit in the ISER register to enable the
       * interrupt
       */