/* Whether to stop the peripheral2 while mcu core stop.  */
void DBGC_Periph2Cmd(uint32_t u32Periph, en_functional_state_t enNewState)
/* Whether to stop the peripheral2 while mcu core stop.  */
void DBGC_Periph2Cmd(uint32_t u32Periph, en_functional_state_t enNewState)
{
    DDL_ASSERT(IS_FUNCTIONAL_STATE(enNewState));
    if (ENABLE == enNewState) {
        CLR_REG32_BIT(CM_DBGC->MCUSTPCTL2, u32Periph);
    } else {
        SET_REG32_BIT(CM_DBGC->MCUSTPCTL2, u32Periph);
    }
}