/* Configure power supply for each peripheral according to NewState.  */
void CLKPWR_ConfigPPWR(uint32_t PPType, FunctionalState NewState)
/* Configure power supply for each peripheral according to NewState.  */
void CLKPWR_ConfigPPWR(uint32_t PPType, FunctionalState NewState)
{
    if (NewState == ENABLE)
    {
        LPC_SC->PCONP |= PPType;
    }
    else if (NewState == DISABLE)
    {
        LPC_SC->PCONP &= ~PPType;
    }
}