After entering deep sleep mode, I am trying to wake up the device using GPIO interrupt. i am able to configure the GPIO interrupt for the rising edge and the control is going to the IRQ handler on every rising edge, but there is some clocking issue that has occurred. The output on the debug UART is coming as some garbage value which looks like a baud rate issue. I tried to manually configure the clock and reinitialize the hardware including debug UART(UART 3), but its still not helped.
Following is the IRQ handler that i have written, please suggest if any changes are required.
Chip_GPIOINT_ClearIntStatus(LPC_GPIOINT, 0, 6);
DEBUGOUT("Rising Status: %d\n", Chip_GPIOINT_GetStatusRising(LPC_GPIOINT,0));
DEBUGOUT("Falling Status: %d\n", Chip_GPIOINT_GetStatusFalling(LPC_GPIOINT,0));