Reset peripherals on enable
This commit is contained in:
parent
5f39f13616
commit
ca88ace98d
3 changed files with 3 additions and 0 deletions
embassy-stm32/src/usart
|
@ -200,6 +200,7 @@ impl<'d, T: Instance, TxDma, RxDma> Uart<'d, T, TxDma, RxDma> {
|
|||
unborrow!(_inner, rx, tx, tx_dma, rx_dma);
|
||||
|
||||
T::enable();
|
||||
T::reset();
|
||||
let pclk_freq = T::frequency();
|
||||
|
||||
// TODO: better calculation, including error checking and OVER8 if possible.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue