Add fifo buffer to serial.c