Changeset b9ff276c in rtems
- Timestamp:
- 08/16/01 20:52:05 (22 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c0af4e47
- Parents:
- f7691e3
- Location:
- c/src/lib/libbsp/i386/shared
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/shared/ChangeLog
rf7691e3 rb9ff276c 1 2 * comm/tty_drv.c, comm/uart.c: Correct some minor cut and paste bugs. 3 4 2001-07-03 Mike Seirs <mike@poliac.com> 1 5 2 6 * comm/tty_drv.c, comm/uart.c, comm/uart.h: Adds the capability -
c/src/lib/libbsp/i386/shared/comm/tty_drv.c
rf7691e3 rb9ff276c 19 19 * 20 20 * $Log$ 21 * Revision 1.4 2001/07/03 17:56:32 joel 22 * 2001-07-03 Mike Seirs <mike@poliac.com> 23 * 24 * * comm/tty_drv.c, comm/uart.c, comm/uart.h: Adds the capability 25 * to use task driven serial I/O to ti386 BSPs. This patch leaves thex 26 * default I/O mode to be IRQ. If you want to use task I/O mode, 27 * then the tty_drv.c file needs to be modified. Basically, all 28 * you need to change is the data values of the termios callbacks 29 * structure. This callback structure is used in the tty1_open 30 * and tty2_open functions. The values you need to set are commented 31 * out in the source code. 32 * 21 33 * Revision 1.3 2000/12/05 16:37:38 joel 22 34 * 2000-12-01 Joel Sherrill <joel@OARcorp.com> … … 199 211 { 200 212 NULL, /* firstOpen */ 201 tty1_last_close,/* lastClose */213 NULL, /* lastClose */ 202 214 BSP_uart_termios_read_com1, /* poll read */ 203 215 BSP_uart_termios_write_com1, /* write */ … … 489 501 { 490 502 NULL, /* firstOpen */ 491 tty2_last_close,/* lastClose */503 NULL, /* lastClose */ 492 504 BSP_uart_termios_read_com2, /* poll read */ 493 505 BSP_uart_termios_write_com2, /* write */ -
c/src/lib/libbsp/i386/shared/comm/uart.c
rf7691e3 rb9ff276c 544 544 545 545 /* read current byte */ 546 while (( off < sizeof(buf) ) && ( uread(BSP_UART_COM 1, LSR) & DR )) {547 buf[off++] = uread(BSP_UART_COM 1, RBR);546 while (( off < sizeof(buf) ) && ( uread(BSP_UART_COM2, LSR) & DR )) { 547 buf[off++] = uread(BSP_UART_COM2, RBR); 548 548 } 549 549
Note: See TracChangeset
for help on using the changeset viewer.