/* param base CMC peripheral base address. param lowPowerMode The low power mode to be entered. See cmc_low_power_mode_t for the details.  */
void CMC_GlobalEnterLowPowerMode(CMC_Type *base, cmc_low_power_mode_t lowPowerMode)
/* param base CMC peripheral base address. param lowPowerMode The low power mode to be entered. See cmc_low_power_mode_t for the details.  */
void CMC_GlobalEnterLowPowerMode(CMC_Type *base, cmc_low_power_mode_t lowPowerMode)
{
    CMC_SetClockMode(base, kCMC_GateAllSystemClocksEnterLowPowerMode);
    CMC_SetGlobalPowerMode(base, lowPowerMode);
    (void)base->GPMCTRL;
    SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
    __DSB();
    __WFI();
    __ISB();
}