Question
Changing environmental settings.
Hi, Is there anyway to use a global variable to change the USART interface configuration such as the BaudRate :
static void MX_USART1_UART_Init(void)
{
If(A = 1)
{
huart1.Init.BaudRate = 38400;
}
If(A = 2)
{
huart1.Init.BaudRate = 9600;
}
}
Not sure if this is possible?