/* param base CMC peripheral base address. param allowedModes Bitmaps of the allowed power modes.  */
void CMC_SetPowerModeProtection(CMC_Type *base, uint32_t allowedModes)
/* param base CMC peripheral base address. param allowedModes Bitmaps of the allowed power modes.  */
void CMC_SetPowerModeProtection(CMC_Type *base, uint32_t allowedModes)
{
    uint32_t reg;
    reg = base->PMPROT;
    reg &= ~0xFUL;
    reg |= allowedModes;
    base->PMPROT = reg;
}