Core/Src/main.c
/**
  * @brief USART3 Initialization Function
  * @param None
  * @retval None
  */
@brief USART3 Initialization Function
@param None
@retval None
@brief USART3 Initialization Function @param None @retval None
static void MX_USART3_UART_Init(void)
{
  huart3.Instance = USART3;
  huart3.Init.BaudRate = 115200;
  huart3.Init.WordLength = UART_WORDLENGTH_8B;
  huart3.Init.StopBits = UART_STOPBITS_1;
  huart3.Init.Parity = UART_PARITY_NONE;
  huart3.Init.Mode = UART_MODE_TX_RX;
  huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE;
  huart3.Init.OverSampling = UART_OVERSAMPLING_8;
  huart3.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
  huart3.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_DMADISABLEONERROR_INIT;
  huart3.AdvancedInit.DMADisableonRxError = UART_ADVFEATURE_DMA_DISABLEONRXERROR;
  if (HAL_UART_Init(&huart3) != HAL_OK)
  {
    Error_Handler();
  }
}
static void MX_USART3_UART_Init ( void ) { huart3 . Instance = USART3 ; huart3 . Init . BaudRate = 115200 ; huart3 . Init . WordLength = UART_WORDLENGTH_8B ; huart3 . Init . StopBits = UART_STOPBITS_1 ; huart3 . Init . Parity = UART_PARITY_NONE ; huart3 . Init . Mode = UART_MODE_TX_RX ; huart3 . Init . HwFlowCtl = UART_HWCONTROL_NONE ; huart3 . Init . OverSampling = UART_OVERSAMPLING_8 ; huart3 . Init . OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE ; huart3 . AdvancedInit . AdvFeatureInit = UART_ADVFEATURE_DMADISABLEONERROR_INIT ; huart3 . AdvancedInit . DMADisableonRxError = UART_ADVFEATURE_DMA_DISABLEONRXERROR ; if ( HAL_UART_Init ( & huart3 ) != HAL_OK ) { Error_Handler ( ) ; } }
@brief USART3 Initialization Function
 @param None
 @retval None
@brief USART3 Initialization Function @param None @retval None
/* USER CODE BEGIN USART3_Init 0 */ /* USER CODE END USART3_Init 0 */ /* USER CODE BEGIN USART3_Init 1 */ /* USER CODE END USART3_Init 1 */ /* USER CODE BEGIN USART3_Init 2 */ /* USER CODE END USART3_Init 2 */