Skip to content

Commit

Permalink
starfive/visionfive2/bt0: wait for UART ready when changing baud rate
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Maslowski <[email protected]>
  • Loading branch information
orangecms committed Mar 3, 2024
1 parent af64a90 commit 65497ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mainboard/starfive/visionfive2/bt0/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ fn main() {

let dp = pac::Peripherals::take().unwrap();

while dp.UART0.usr().read().busy() == true {}
let mut s = uart::JH71XXSerial::new_with_config(
dp.UART0,
hal::uart::TIMEOUT_US,
Expand Down

0 comments on commit 65497ce

Please sign in to comment.