/* This function puts the system into Deep Sleep power mode. System exits the power state on any one of the available interrupt. On exit from deep sleep the function returns to the calling function with all the processor core registers retained. */
void PRCMDeepSleepEnter(void)
/* This function puts the system into Deep Sleep power mode. System exits the power state on any one of the available interrupt. On exit from deep sleep the function returns to the calling function with all the processor core registers retained. */
void PRCMDeepSleepEnter(void)
{
  HWREG(HIB1P2_BASE + HIB1P2_O_BGAP_DUTY_CYCLING_EXIT_CFG) = 0x1;
  HWREG(0xE000ED10)|=1<<2;
  CPUwfi();
  HWREG(0xE000ED10) &= ~(1<<2);
}