/* configure generate Error-bit when detected some abnormal situation or not, whether stop receive message when detected bit rising error  */
void cec_error_config(uint32_t broadcast, uint32_t singlecast_lbpe, uint32_t singlecast_bre, uint32_t rxbrestp)
/* configure generate Error-bit when detected some abnormal situation or not, whether stop receive message when detected bit rising error  */
void cec_error_config(uint32_t broadcast, uint32_t singlecast_lbpe, uint32_t singlecast_bre, uint32_t rxbrestp)
{
    uint32_t cfg;
    cfg = CEC_CFG;
    cfg &= ~(CEC_CFG_BCNG | CEC_CFG_RLBPEGEN | CEC_CFG_RBREGEN);
    cfg |= (broadcast | singlecast_lbpe | singlecast_bre);
    CEC_CFG = cfg;
    if(CEC_STOP_RISING_ERROR_BIT_ON == rxbrestp){
        CEC_CFG |= CEC_CFG_RBRESTP;
    } else {
        CEC_CFG &= ~CEC_CFG_RBRESTP;
    }
}