Skip to content

Commit

Permalink
Fix bug setting UART fifo receive level (#2666)
Browse files Browse the repository at this point in the history
5 (0x101) is a reserved value in the datasheet; should be 4 (0x100).
  • Loading branch information
mikee47 authored Sep 18, 2023
1 parent f3b0a2b commit ca94c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Arch/Rp2040/Components/driver/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca94c51

Please sign in to comment.