Discard UART characters on receive errors
When error occurs on receiver side, processing of such byte is usually not necessary and it makes more sense to discard it. The driver should guarrentee that all received bytes are valid.
This approach also simplifies implementation of majority voting mechanism. In the case of 2/3 voting, the sink program only needs to count two successive identical characters as a valid symbol.
由 Victor Chen 编辑于