What should I use instead of huart->Instance == USART1?
Hi everyone,
I write a function to start all other functions without any parameter like Start(); in while, but in this funciton I write different function like this
void Start()
{
if(huart->Instance == USART1)
measure(tx1_buffer);
else if(huart->Instance == USART2)
measure(tx2_buffer_buffer);
}
so I want to know in this function which UART is return to function, bcs It is a parameter of measure function. Can I use flags to specify which uart is? What would you recommend?
