commit | 376b80b5476e190c6244250d3543b9109717b3b7 | [log] [tgz] |
---|---|---|
author | Yann Gautier <yann.gautier@foss.st.com> | Mon Feb 28 17:29:49 2022 +0100 |
committer | Yann Gautier <yann.gautier@st.com> | Fri Mar 04 14:55:18 2022 +0100 |
tree | 8d7a7728bcd85849660b221156fa620aa1a98436 | |
parent | e05753c644652c477ac9c209319cb88cad03055c [diff] |
fix(st-uart): correctly fill BRR register To get the nearest divisor for BRR register, we use: Divisor = (Uart clock + (baudrate / 2)) / baudrate But lsl was wrongly used instead of lsr to have the division by 2. Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Iedcc3ccdb4cf8268012e82a66df2a9ec48fc1d79