/* configure generate Error-bit when detected some abnormal situation or not  */
void cec_generate_errorbit_config(uint32_t broadcast, uint32_t singlecast_lbpe, uint32_t singlecast_bre)
/* configure generate Error-bit when detected some abnormal situation or not  */
void cec_generate_errorbit_config(uint32_t broadcast, uint32_t singlecast_lbpe, uint32_t singlecast_bre)
{
    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;
}