source/src/main.cpp
static void MX_UART7_Init(void)
{

    /* USER CODE BEGIN UART7_Init 0 */

    /* USER CODE END UART7_Init 0 */

    /* USER CODE BEGIN UART7_Init 1 */

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

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