why gpio read interrupt status function unavailable ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why gpio read interrupt status function unavailable ?

314 Views
lpcware
NXP Employee
NXP Employee
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.


Labels (1)
0 Kudos
0 Replies