Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5164

General • Re: Getting Out Of A UART Framing Error

$
0
0
You are cllaring the error bits in the wrong way: the bits in uart->rsr are write-1-to-clear, so instead of your hw_clear_bits() - which won't have any effect - you actually need:

Code:

uart_get_hw(uart1)->rsr = uart_get_hw(uart1)->rsr;
(or something similar like reading it into a variable for your if statement and writing that value back to RSR if nonzero).

Statistics: Posted by arg001 — Fri Dec 13, 2024 12:17 pm



Viewing all articles
Browse latest Browse all 5164

Trending Articles