/* configure signal free time,the signal free time counter start option,own address  */
void cec_init(uint32_t sftmopt, uint32_t sft, uint32_t address)
/* configure signal free time,the signal free time counter start option,own address  */
void cec_init(uint32_t sftmopt, uint32_t sft, uint32_t address)
{
    uint32_t cfg;
    cfg = CEC_CFG;
    cfg &= ~(CEC_CFG_SFTOPT | CEC_CFG_SFT);
    cfg |= (sftmopt | sft);
    CEC_CFG = cfg;
    if(CEC_OWN_ADDRESS_CLEAR == address){
        CEC_CFG &= ~CEC_CFG_OWN_ADDRESS;
    } else {
        CEC_CFG |= address;
    }
}