/* Initializes the CEC peripheral according to the specified parameters in the CEC_InitStruct.  */
void CEC_Init(CEC_InitTypeDef *CEC_InitStruct)
/* Initializes the CEC peripheral according to the specified parameters in the CEC_InitStruct.  */
void CEC_Init(CEC_InitTypeDef *CEC_InitStruct)
{
  uint16_t tmpreg = 0;
  assert_param(IS_CEC_BIT_TIMING_ERROR_MODE(CEC_InitStruct->CEC_BitTimingMode)); 
  assert_param(IS_CEC_BIT_PERIOD_ERROR_MODE(CEC_InitStruct->CEC_BitPeriodMode));
  tmpreg = CEC->CFGR;
  tmpreg &= CFGR_CLEAR_Mask;
  tmpreg |= (uint16_t)(CEC_InitStruct->CEC_BitTimingMode | CEC_InitStruct->CEC_BitPeriodMode);
  CEC->CFGR = tmpreg;
}