lpcware

USING EXT INTERRUPT

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by nravi on Sat Sep 26 06:56:26 MST 2015
Hi,
I am new to this LPC43xx & using board from NGX Technologies.
I have tried this code for GPIO INT on GPIO4[0] & Working fine & part of the code is here.
#define PIN_INT_PORT4 
#define PIN_INT_BIT0
#define PIN_INT_NUM4
#define INT_IDPIN_INT4_IRQn

void GPIO4_IRQHandler(void);
void GPIO4_IRQHandler(void)
{
  if(GPIO_GetIntStatus(PIN_INT_NUM))
{
GPIO_ClearInt(intMode,1<<PIN_INT_NUM);
if (!(GPIO_ReadValue(PIN_INT_PORT)&(1<<PIN_INT_BIT)))
{
int_flag = 1;
}
}

But I want to change the same to GPIO4[10].
Let me know if any one can help me.
Thanks in advance
Ravi N

Outcomes