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

View file

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