diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-07-03 17:56:32 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-07-03 17:56:32 +0000 |
commit | caeb33b22de9493023993090d54e8f4f6156e4cf (patch) | |
tree | f67c5fd1d0ad83cb5eca3c7fe960084f58ab86c7 /c/src/lib/libbsp/i386/shared/comm/uart.h | |
parent | 2001-07-03 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-caeb33b22de9493023993090d54e8f4f6156e4cf.tar.bz2 |
2001-07-03 Mike Seirs <mike@poliac.com>
* comm/tty_drv.c, comm/uart.c, comm/uart.h: Adds the capability
to use task driven serial I/O to ti386 BSPs. This patch leaves thex
default I/O mode to be IRQ. If you want to use task I/O mode,
then the tty_drv.c file needs to be modified. Basically, all
you need to change is the data values of the termios callbacks
structure. This callback structure is used in the tty1_open
and tty2_open functions. The values you need to set are commented
out in the source code.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/comm/uart.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/shared/comm/uart.h b/c/src/lib/libbsp/i386/shared/comm/uart.h index d5687bf453..116ae15c60 100644 --- a/c/src/lib/libbsp/i386/shared/comm/uart.h +++ b/c/src/lib/libbsp/i386/shared/comm/uart.h @@ -20,6 +20,8 @@ int BSP_uart_polled_status(int uart); void BSP_uart_polled_write(int uart, int val); int BSP_uart_polled_read(int uart); void BSP_uart_termios_set(int uart, void *ttyp); +int BSP_uart_termios_read_com1(int uart); +int BSP_uart_termios_read_com2(int uart); int BSP_uart_termios_write_com1(int minor, const char *buf, int len); int BSP_uart_termios_write_com2(int minor, const char *buf, int len); void BSP_uart_termios_isr_com1(); |