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,