Skip to content

Commit 97312b0

Browse files
committed
Remove unnecessary initialization of UBRR.
The register is overwritten with clock divider later.
1 parent 2db4a18 commit 97312b0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

avr-hal-generic/src/usart_spi.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ macro_rules! add_usart_spi {
5555
fn raw_setup(&mut self, settings: &$crate::spi::Settings) {
5656
use $crate::hal::spi;
5757

58-
// Setup control registers
59-
// We start by setting the UBBRn to 0
60-
self.[<ubrr $n>].write(|w| unsafe {w.bits(0)});
61-
6258
// We have to translate the character size register into the 2 bits which are the MSB/LSB and the phase
6359
// 5 Bit Char = MSB and 1st
6460
// 6 Bit Char = MSB and 2nd

0 commit comments

Comments
 (0)