Skip to content

Commit 15b049b

Browse files
committed
Fix uart clock initialization
The clear_bit in at the end of the clock enable was deleted accidentally. This commit re-adds this call.
1 parent 8a026d2 commit 15b049b

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)