Edit the auto-generated code in CubeMX
Is there a way to edit the auto-generated code in CubeMX, such as in the function below?
please see the code below:
void MX_USART2_UART_Init(void)
{
/* USER CODE BEGIN USART2_Init 0 */
/* USER CODE END USART2_Init 0 */
/* USER CODE BEGIN USART2_Init 1 */
/* USER CODE END USART2_Init 1 */
huart2.Instance = USART2;
#ifdef SLOW_CLOCK
huart2.Init.BaudRate = 9600;
#else
huart2.Init.BaudRate = 152285;
#endif huart2.Init.WordLength = UART_WORDLENGTH_8B;
...
}Edited to apply source code formatting - please see How to insert source code for future reference.

