/* The function is used to Enable or active power down function.  */
void SysCtlPowerDownEnable(xtBoolean bEnable)
/* The function is used to Enable or active power down function.  */
void SysCtlPowerDownEnable(xtBoolean bEnable)
{
    SysCtlKeyAddrUnlock();
    if(bEnable)
    {
    	xHWREG(NVIC_SYS_CTRL) |= NVIC_SYS_CTRL_SLEEPDEEP;
        xHWREG(SYSCLK_PWRCON) |= (SYSCLK_PWRCON_PWR_DO_EN | SYSCLK_PWRCON_WU_DLY);
    }
    else
    {
    	xHWREG(NVIC_SYS_CTRL) &= ~NVIC_SYS_CTRL_SLEEPDEEP;
        xHWREG(SYSCLK_PWRCON) &= ~(SYSCLK_PWRCON_PWR_DO_EN | SYSCLK_PWRCON_WU_DLY);
    }
    SysCtlKeyAddrLock();
}