Update bsp/uart.c

Simplify uart interface.