/* param base CMC peripheral base address. param config Pointer to the reset pin config structure.  */
void CMC_ConfigResetPin(CMC_Type *base, const cmc_reset_pin_config_t *config)
/* param base CMC peripheral base address. param config Pointer to the reset pin config structure.  */
void CMC_ConfigResetPin(CMC_Type *base, const cmc_reset_pin_config_t *config)
{
    assert(config != NULL);
    uint32_t reg = base->RPC;
    if (config->lowpowerFilterEnable)
    {
        reg |= CMC_RPC_LPFEN_MASK;
    }
    else
    {
        reg &= ~CMC_RPC_LPFEN_MASK;
    }
    if (config->resetFilterEnable)
    {
        reg |= (CMC_RPC_FILTEN_MASK | CMC_RPC_FILTCFG(config->resetFilterWidth));
    }
    else
    {
        reg &= ~(CMC_RPC_FILTEN_MASK | CMC_RPC_FILTCFG_MASK);
    }
    base->RPC = reg;
}