stm32/usart: fix LPUART clock multiplier

According to RM0351 Rev 9 (L4) and RM0399 Rev 3 (H7):

baud = (256 * clock) / LPUARTDIV
This commit is contained in:
Patrick Oppenlander 2023-02-06 10:12:10 +11:00
parent 9af25c3396
commit fda36fd81b

View File

@ -1148,7 +1148,7 @@ macro_rules! impl_lpuart {
foreach_interrupt!(
($inst:ident, lpuart, $block:ident, $signal_name:ident, $irq:ident) => {
impl_lpuart!($inst, $irq, 255);
impl_lpuart!($inst, $irq, 256);
};
($inst:ident, usart, $block:ident, $signal_name:ident, $irq:ident) => {