Completed UART Rx timeout implementation.