Implement error checking/clearing for RealView_getc

Implemented error detection/clearing for RealView_getc. This resolves the odd behavior and eliminates the need for the timeout while waiting for the "receive fifo empty" bit to be set.