/* Set EMB release PWM condition for the specified event.  */
void EMB_SetReleasePwmCond(CM_EMB_TypeDef *EMBx, uint32_t u32Event, uint32_t u32Cond)
/* Set EMB release PWM condition for the specified event.  */
void EMB_SetReleasePwmCond(CM_EMB_TypeDef *EMBx, uint32_t u32Event, uint32_t u32Cond)
{
    DDL_ASSERT(IS_EMB_GROUP(EMBx));
    DDL_ASSERT(IS_EMB_MONITOR_EVT(u32Event));
    DDL_ASSERT(IS_EMB_RELEASE_PWM_COND(u32Cond));
    if (EMB_RELEASE_PWM_COND_FLAG_ZERO == u32Cond) {
        CLR_REG32_BIT(EMBx->RLSSEL, u32Event);
    } else {
        SET_REG32_BIT(EMBx->RLSSEL, u32Event);
    }
}