From dbe4a2a84e4a9d3b1cd177bc0ef93914669e130a Mon Sep 17 00:00:00 2001 From: Lauchmelder Date: Fri, 21 Jan 2022 11:58:46 +0100 Subject: [PATCH] fixed baud rate --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.c b/src/io.c index 14d3ebe..658ef33 100644 --- a/src/io.c +++ b/src/io.c @@ -28,7 +28,7 @@ void uart_init() poke(AUX_MU_MCR_REG, 0); // Pull RTS high poke(AUX_MU_IER_REG, 0); poke(AUX_MU_IIR_REG, 0xC6); // Disable interrupts - poke(AUX_MU_BAUD_REG, AUX_UART_CLOCK / (112500 * 8) - 1); + poke(AUX_MU_BAUD_REG, AUX_UART_CLOCK / (115200 * 8) - 1); gpio_setAltMode5(14); gpio_setAltMode5(15); poke(AUX_MU_CNTL_REG, 3);