commit | f0f59d0c450e11644acaae90d23c32e32dd4dfcf | [log] [tgz] |
---|---|---|
author | Yann Gautier <yann.gautier@foss.st.com> | Wed Mar 29 14:23:49 2023 +0200 |
committer | Yann Gautier <yann.gautier@st.com> | Tue May 30 15:39:50 2023 +0200 |
tree | b68f6f0b793c81a43097c13efb774e90699db53d | |
parent | 4e2b34d08c9964b2033d818315a3a984d3d3efdb [diff] |
fix(st-uart): skip console flush if UART is disabled Check the USART_CR1_UE bit and if it is 0, the UART is not enabled, or not clocked (but the read won't freeze the bus and will return 0). In this case skip the console flush. Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I5d1ef7e51612b4795e314b2f2da04a514b6c96a0