Uart: add TXC flag check function and minor fix

Add function TxDone() to check TXC flag, it's useful for RS485 direction
control in polling mode.

Add ATmega64 to Error enum.