From 316bebe8f1104c27f52675a6f461d645f722c540 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Mon, 18 Sep 2023 16:30:38 +0100 Subject: [PATCH] Fix bug setting UART fifo receive level 5 (0x101) is a reserved value in the datasheet; should be 4 (0x100). --- Sming/Arch/Rp2040/Components/driver/uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sming/Arch/Rp2040/Components/driver/uart.cpp b/Sming/Arch/Rp2040/Components/driver/uart.cpp index 06503f3624..61a14c220f 100644 --- a/Sming/Arch/Rp2040/Components/driver/uart.cpp +++ b/Sming/Arch/Rp2040/Components/driver/uart.cpp @@ -295,7 +295,7 @@ void smg_uart_start_isr(smg_uart_t* uart) if(smg_uart_rx_enabled(uart)) { // Trigger at >= 7/8 full - fifo_level_select |= 5 << UART_UARTIFLS_RXIFLSEL_LSB; + fifo_level_select |= 4 << UART_UARTIFLS_RXIFLSEL_LSB; /* * There is little benefit in generating interrupts on errors, instead these