FreeCalypso > hg > freecalypso-reveng
comparison fluid-mnf/serial.h @ 342:6ff231195905
fluid-mnf/serial.[ch]: beginning of Linux port
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 13 Mar 2020 05:39:37 +0000 |
parents | 9cecc930d78f |
children | 37b5f94de802 |
comparison
equal
deleted
inserted
replaced
341:1cd24530c0ae | 342:6ff231195905 |
---|---|
5 * Mads Meisner-Jensen, mmj@ti.com. | 5 * Mads Meisner-Jensen, mmj@ti.com. |
6 * | 6 * |
7 * Serial/UART driver | 7 * Serial/UART driver |
8 * | 8 * |
9 * $Id: serial.h 1.8 Wed, 04 Sep 2002 16:32:18 +0200 mmj $ | 9 * $Id: serial.h 1.8 Wed, 04 Sep 2002 16:32:18 +0200 mmj $ |
10 * | |
11 * This serial interface handling architecture has been majorly redesigned | |
12 * by Mychaela N. Falconia for the present fluid-mnf Linux port. | |
10 * | 13 * |
11 ******************************************************************************/ | 14 ******************************************************************************/ |
12 | 15 |
13 int serial_init(int uart, int baudrate, char *flowcontrol); | 16 int serial_init(int uart, int baudrate, char *flowcontrol); |
14 int serial_is_baudrate(int bps); | 17 int serial_is_baudrate(int bps); |
18 void serial_reset(void); | 21 void serial_reset(void); |
19 | 22 |
20 int serial_transfer_time(int size); | 23 int serial_transfer_time(int size); |
21 | 24 |
22 int serial_send(char *buf, int size); | 25 int serial_send(char *buf, int size); |
23 int serial_putchar(unsigned char ch); | 26 int serial_recv(char *buf, int size, int timeout); |
24 int serial_recv(char *buf, int size); | |
25 void serial_recv_reset(void); | 27 void serial_recv_reset(void); |
26 | 28 |
27 void serial_rts(char state); | 29 void serial_rts(char state); |
28 void serial_dtr(char state); | 30 void serial_dtr(char state); |
29 void serial_break(char state); | 31 void serial_break(char state); |