/* \This function use extern interrupt to wake up mcu from sleep mode */
void WakeUpFromPowerDown(void)
/* \This function use extern interrupt to wake up mcu from sleep mode */
void WakeUpFromPowerDown(void)
{	 
    xIntEnable(INT_EINT0);
    xIntPrioritySet(INT_EINT0, 1);
    xGPIOSPinTypeGPIOInput(PD2);
    xSPinTypeEXTINT(NINT0, PD2);
    xGPIOPinIntEnable(GPIO_PORTD_BASE, GPIO_PIN_2, xGPIO_FALLING_EDGE);
    GPIOPinIntCallbackInit(GPIO_PORTD_BASE, GPIO_PIN_2, INT0CallbackFunction);
}