HAL_UART_Transmit cost 15ms?
I just find my HAL_UART_Transmit() function cost 15ms. why does it cost so much time?
The UART speed is 19200, and I use GPIO set and reset function to check the time cost.
Total data length of send buffer is 29 bytes. and I use a 15ms polling loop to call this function, so it cost me over 30ms for every msg sending task, but for 19200 speed, it should only need 12.1ms for each 29 bytes.


I assume this reason may be caused by the HAL_UART_Transmit() function is a sync function, it needs to wait all the data tranferring finished. is it right? If yes, is it means I can reduce my robin task period?
Kind Regards
RichKnight
