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:
parent
9af25c3396
commit
fda36fd81b
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user