Skip to content

Commit ebd3583

Browse files
authored
Merge pull request stm32-rs#241 from Sh3Rm4n/fix-uart-clock-enable
Fix uart clock initialization
2 parents 8a026d2 + 15b049b commit ebd3583

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/serial.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ macro_rules! usart {
514514
fn enable_clock(apb: &mut Self::APB) {
515515
apb.enr().modify(|_, w| w.$usartXen().enabled());
516516
apb.rstr().modify(|_, w| w.$usartXrst().reset());
517+
apb.rstr().modify(|_, w| w.$usartXrst().clear_bit());
517518
}
518519

519520
fn clock(clocks: &Clocks) -> Hertz {

0 commit comments

Comments
 (0)