Examples/Crusher/Linux/stm32/firmware/lib/src/peripherals/stm32f4xx_can.c
/**
  * @brief  Fills each CAN_InitStruct member with its default value.
  * @param  CAN_InitStruct: pointer to a CAN_InitTypeDef structure which ill be initialized.
  * @retval None
  */
@brief  Fills each CAN_InitStruct member with its default value.
@param  CAN_InitStruct: pointer to a CAN_InitTypeDef structure which ill be initialized.
@retval None
@brief Fills each CAN_InitStruct member with its default value . @param CAN_InitStruct : pointer to a CAN_InitTypeDef structure which ill be initialized . @retval None
void CAN_StructInit(CAN_InitTypeDef* CAN_InitStruct)
{
  CAN_InitStruct->CAN_TTCM = DISABLE;
  CAN_InitStruct->CAN_ABOM = DISABLE;
  CAN_InitStruct->CAN_AWUM = DISABLE;
  CAN_InitStruct->CAN_NART = DISABLE;
  CAN_InitStruct->CAN_RFLM = DISABLE;
  CAN_InitStruct->CAN_TXFP = DISABLE;
  CAN_InitStruct->CAN_Mode = CAN_Mode_Normal;
  CAN_InitStruct->CAN_SJW = CAN_SJW_1tq;
  CAN_InitStruct->CAN_BS1 = CAN_BS1_4tq;
  CAN_InitStruct->CAN_BS2 = CAN_BS2_3tq;
  CAN_InitStruct->CAN_Prescaler = 1;
}
void CAN_StructInit ( CAN_InitTypeDef * CAN_InitStruct ) { CAN_InitStruct -> CAN_TTCM = DISABLE ; CAN_InitStruct -> CAN_ABOM = DISABLE ; CAN_InitStruct -> CAN_AWUM = DISABLE ; CAN_InitStruct -> CAN_NART = DISABLE ; CAN_InitStruct -> CAN_RFLM = DISABLE ; CAN_InitStruct -> CAN_TXFP = DISABLE ; CAN_InitStruct -> CAN_Mode = CAN_Mode_Normal ; CAN_InitStruct -> CAN_SJW = CAN_SJW_1tq ; CAN_InitStruct -> CAN_BS1 = CAN_BS1_4tq ; CAN_InitStruct -> CAN_BS2 = CAN_BS2_3tq ; CAN_InitStruct -> CAN_Prescaler = 1 ; }
@brief  Fills each CAN_InitStruct member with its default value.
@brief Fills each CAN_InitStruct member with its default value .
/* Reset CAN init structure parameters values */ /* Initialize the time triggered communication mode */ /* Initialize the automatic bus-off management */ /* Initialize the automatic wake-up mode */ /* Initialize the no automatic retransmission */ /* Initialize the receive FIFO locked mode */ /* Initialize the transmit FIFO priority */ /* Initialize the CAN_Mode member */ /* Initialize the CAN_SJW member */ /* Initialize the CAN_BS1 member */ /* Initialize the CAN_BS2 member */ /* Initialize the CAN_Prescaler member */