lpcware

why gpio read interrupt status function unavailable ?

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by clarkzh on Thu Sep 25 06:58:08 MST 2014
in latetest expresso version example i see

/**
* @briefHandle interrupt from GPIO pin or GPIO pin mapped to PININT
* @returnNothing
*/
void PININT_IRQ_HANDLER(void)
{
/* Clear interrupt */
Chip_GPIO_ClearInts(LPC_GPIO, tmp, (1 << GPIO_PININT));
}


but i think the GPIO INT status might not be triggered by that pin. it should be checked first. like in previes vesion

see

void PIOINT0_IRQHandler(void)
{
  uint32_t regVal;

  gpio0_counter++;
  regVal = GPIOIntStatus( PORT0, 1 );
  if ( regVal )
  {
p0_1_counter++;
GPIOIntClear( PORT0, 1 );
  }
  return;
}


i can not find similar function in expresso vesion example  like :GPIOIntStatus( PORT0, 1 );

it is just abundant from this version . why? i need to read some reg to check which pin trigger the interrupt.


Outcomes