platform: uart: workaround for uart_tstc

when waiting for the ready flag uart_tstc gives us every 4th character only.
that's why we just read one charactor and write it to a buffer so uart_getc
can return it next time.

also add some ifdefs in api code.