added changes of improved UART driver interface