From ca94c515597a913b63266255a8550e27c861bbe3 Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 18 Sep 2023 16:40:37 +0100 Subject: [PATCH] Fix bug setting UART fifo receive level (#2666) 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