Increase serial rate to 38400 baud

This commit is contained in:
Thomas Kolb 2024-02-15 22:46:51 +01:00
parent 604c34a147
commit 3373984f86
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ fn main() -> ! {
);
let uart = hal::uart::UartPeripheral::new(pac.UART0, uart_pins, &mut pac.RESETS)
.enable(
UartConfig::new(9600.Hz(), DataBits::Eight, None, StopBits::One),
UartConfig::new(38400.Hz(), DataBits::Eight, None, StopBits::One),
clocks.peripheral_clock.freq(),
)
.unwrap();