wakeup irq & point0 irq conflict

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

wakeup irq & point0 irq conflict

265 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Wed Oct 16 12:33:41 MST 2013
Hi there,

Is there a possibility of a conflict between the PIOINT0_IRQHandler and the WAKEUP_IRQHandler  as they both use GPIO?
I have a case that I cannot disable the wakeup handler while entering the point0 handler.

For the wakeup pins I use:
regVal = LPC_SYSCON->STARTSRP0;
  if ( (regVal & (1 << 8)) != 0){
  LPC_GPIO0->IC |= (0x1<<8);
  LPC_GPIO0->IE &= ~(0x1<<8);
  LPC_SYSCON->STARTRSRP0CLR|=(1<<(8));
  wakeFromTimerFlag =1;
  else {
  LPC_GPIO0->IC |= (0x1<<12);
  LPC_GPIO0->IE &= ~(0x1<<12);
  LPC_SYSCON->STARTRSRP0CLR|=(1<<(12));
  wakeFromSensorFlag =1;

The PIOINT0_IRQHandler is for GPIO_5.

When the program is inside the POINT0 IRQ and I activate the Wakeup IRQ it stacks.  Otherwise works fine.

Regards,
Labels (1)
0 Kudos
1 Reply

248 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by tbelo on Wed Oct 16 14:48:30 MST 2013
OK solved.
I had to enable and disable irqs at the main function  :~
0 Kudos