diff options
| author | Patrick Oppenlander <[email protected]> | 2023-02-06 10:12:10 +1100 |
|---|---|---|
| committer | Patrick Oppenlander <[email protected]> | 2023-02-06 11:22:41 +1100 |
| commit | fda36fd81b25bac914e977654beecdb41aaabbb3 (patch) | |
| tree | 3151216796ef22af3970fe09e86bbb9a7ed70b34 | |
| parent | 9af25c3396423036d0092a5f32f2d09b05a4e910 (diff) | |
stm32/usart: fix LPUART clock multiplier
According to RM0351 Rev 9 (L4) and RM0399 Rev 3 (H7):
baud = (256 * clock) / LPUARTDIV
| -rw-r--r-- | embassy-stm32/src/usart/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/usart/mod.rs b/embassy-stm32/src/usart/mod.rs index 20f4eedeb..121699c7b 100644 --- a/embassy-stm32/src/usart/mod.rs +++ b/embassy-stm32/src/usart/mod.rs | |||
| @@ -1148,7 +1148,7 @@ macro_rules! impl_lpuart { | |||
| 1148 | 1148 | ||
| 1149 | foreach_interrupt!( | 1149 | foreach_interrupt!( |
| 1150 | ($inst:ident, lpuart, $block:ident, $signal_name:ident, $irq:ident) => { | 1150 | ($inst:ident, lpuart, $block:ident, $signal_name:ident, $irq:ident) => { |
| 1151 | impl_lpuart!($inst, $irq, 255); | 1151 | impl_lpuart!($inst, $irq, 256); |
| 1152 | }; | 1152 | }; |
| 1153 | 1153 | ||
| 1154 | ($inst:ident, usart, $block:ident, $signal_name:ident, $irq:ident) => { | 1154 | ($inst:ident, usart, $block:ident, $signal_name:ident, $irq:ident) => { |
