source/src/main.cpp
void MX_USART6_UART_Init(void)
{

    /* USER CODE BEGIN USART6_Init 0 */

    /* USER CODE END USART6_Init 0 */

    /* USER CODE BEGIN USART6_Init 1 */

    /* USER CODE END USART6_Init 1 */
    huart6.Instance = USART6;
    huart6.Init.BaudRate = 115200;
    huart6.Init.WordLength = UART_WORDLENGTH_8B;
    huart6.Init.StopBits = UART_STOPBITS_1;
    huart6.Init.Parity = UART_PARITY_NONE;
    huart6.Init.Mode = UART_MODE_TX_RX;
    huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
    huart6.Init.OverSampling = UART_OVERSAMPLING_16;
    huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
    huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
    if (HAL_UART_Init(&huart6) != HAL_OK) {
        Error_Handler();
    }
    /* USER CODE BEGIN USART6_Init 2 */

    /* USER CODE END USART6_Init 2 */
}
/**
 * @brief USART6 Initialization Function
 * @param None
 * @retval None
 */
@brief USART6 Initialization Function
@param None
@retval None
@brief USART6 Initialization Function @param None @retval None
void MX_USART6_UART_Init(void)
{
    huart6.Instance = USART6;
    huart6.Init.BaudRate = 115200;
    huart6.Init.WordLength = UART_WORDLENGTH_8B;
    huart6.Init.StopBits = UART_STOPBITS_1;
    huart6.Init.Parity = UART_PARITY_NONE;
    huart6.Init.Mode = UART_MODE_TX_RX;
    huart6.Init.HwFlowCtl = UART_HWCONTROL_NONE;
    huart6.Init.OverSampling = UART_OVERSAMPLING_16;
    huart6.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
    huart6.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
    if (HAL_UART_Init(&huart6) != HAL_OK) {
        Error_Handler();
    }
}
void MX_USART6_UART_Init ( void ) { huart6 . Instance = USART6 ; huart6 . Init . BaudRate = 115200 ; huart6 . Init . WordLength = UART_WORDLENGTH_8B ; huart6 . Init . StopBits = UART_STOPBITS_1 ; huart6 . Init . Parity = UART_PARITY_NONE ; huart6 . Init . Mode = UART_MODE_TX_RX ; huart6 . Init . HwFlowCtl = UART_HWCONTROL_NONE ; huart6 . Init . OverSampling = UART_OVERSAMPLING_16 ; huart6 . Init . OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE ; huart6 . AdvancedInit . AdvFeatureInit = UART_ADVFEATURE_NO_INIT ; if ( HAL_UART_Init ( & huart6 ) != HAL_OK ) { Error_Handler ( ) ; } }
@brief USART6 Initialization Function
 @param None
 @retval None
@brief USART6 Initialization Function @param None @retval None
/* USER CODE BEGIN USART6_Init 0 */ /* USER CODE END USART6_Init 0 */ /* USER CODE BEGIN USART6_Init 1 */ /* USER CODE END USART6_Init 1 */ /* USER CODE BEGIN USART6_Init 2 */ /* USER CODE END USART6_Init 2 */