/* Controls peripheral clock gating in sleep and deep-sleep mode. */
void SysCtlPeripheralClockGating(bool bEnable)
/* Controls peripheral clock gating in sleep and deep-sleep mode. */
void SysCtlPeripheralClockGating(bool bEnable)
{
    if(CLASS_IS_TM4C123)
    {
        if(bEnable)
        {
            HWREG(SYSCTL_RCC) |= SYSCTL_RCC_ACG;
        }
        else
        {
            HWREG(SYSCTL_RCC) &= ~(SYSCTL_RCC_ACG);
        }
    }
    else
    {
        if(bEnable)
        {
            HWREG(SYSCTL_RSCLKCFG) |= SYSCTL_RSCLKCFG_ACG;
        }
        else
        {
            HWREG(SYSCTL_RSCLKCFG) &= ~SYSCTL_RSCLKCFG_ACG;
        }
    }
}