Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage committed Jan 8, 2024
1 parent dc06f35 commit 0ed4b7f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hal/src/sercom/uart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,10 +969,12 @@ where
// TODO Is this a hardware bug???

// usart.ctrlb.modify(|_, w| w.rxen().clear_bit());
// while usart.syncbusy.read().ctrlb().bit() || usart.ctrlb.read().rxen().bit_is_set() {}
// while usart.syncbusy.read().ctrlb().bit() ||
// usart.ctrlb.read().rxen().bit_is_set() {}

// usart.ctrlb.modify(|_, w| w.rxen().set_bit());
// while usart.syncbusy.read().ctrlb().bit() || usart.ctrlb.read().rxen().bit_is_clear() {}
// while usart.syncbusy.read().ctrlb().bit() ||
// usart.ctrlb.read().rxen().bit_is_clear() {}

for _ in 0..=2 {
let _data = unsafe { self.config.as_mut().registers.read_data() };
Expand Down

0 comments on commit 0ed4b7f

Please sign in to comment.