serial_init_with_fifo — initializes serial port
#include <serial.h>
void serial_init_with_fifo ( | fifo, | |
size); |
uint8_t * fifo;uint8_t size;
Similar to serial_init, except that it also accepts the serial
FIFO for buffering received data. The serial port API internally
buffers received data in a FIFO. The memory area to use for the
FIFO, and the size of the FIFO is specified by fifo and size.
This function is to be used instead of serial_init, when a larger
FIFO (> 2 bytes) is to be used. It is the caller's responsibility
to ensure that fifo is not de-allocated as long as the Serial
module is in use.