uart functions moved to uart.c