DD2-monitor/serial/serial.h

18 lines
241 B
C

/*
* serial.h
* --------
*
*/
int prepare_UART(char *port, int bauds);
int getbyte(int fd);
/* timeout is exprimed in milliseconds. */
int getbyte_to (int fd, int to_ms);
int getline_to(int fd, char *where, int szm, int to_ms);