commit | e6262b1b9739d7244b5e436fde238604f38935ba | [log] [tgz] |
---|---|---|
author | Patrice Chotard <patrice.chotard@foss.st.com> | Wed May 31 08:01:30 2023 +0200 |
committer | Patrice Chotard <patrice.chotard@foss.st.com> | Fri Jun 16 11:29:29 2023 +0200 |
tree | 7ad910087de646219df5e2a460ae0ecebc888acc | |
parent | c52b96a8f467a5bbf52e02d1aa2e44295faf9525 [diff] |
serial: stm32: Wait TC bit before performing initialization In case there is still chars from previous bootstage to transmit, wait for TC (Transmission Complete) bit to be set which ensure that the last data written in the USART_TDR has been transmitted out of the shift register. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>