Changeset ce92867b in rtems for cpukit/libcsupport
- Timestamp:
- Feb 2, 2005, 12:06:18 AM (16 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 043329e
- Parents:
- 1d386ff
- Location:
- cpukit/libcsupport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libcsupport/include/rtems/termiostypes.h
r1d386ff rce92867b 160 160 * put a string to output ring buffer 161 161 */ 162 void rtems_termios_puts (const char*buf,162 void rtems_termios_puts (const void *buf, 163 163 int len, 164 164 struct rtems_termios_tty *tty); -
cpukit/libcsupport/src/termios.c
r1d386ff rce92867b 627 627 */ 628 628 void 629 rtems_termios_puts (const char *buf, int len, struct rtems_termios_tty *tty) 630 { 629 rtems_termios_puts ( 630 const void *_buf, int len, struct rtems_termios_tty *tty) 631 { 632 const unsigned char *buf = _buf; 631 633 unsigned int newHead; 632 634 rtems_interrupt_level level; … … 634 636 635 637 if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 636 (*tty->device.write)(tty->minor, buf, len);638 (*tty->device.write)(tty->minor, (void *)buf, len); 637 639 return; 638 640 } … … 1033 1035 /* XON should be sent now... */ 1034 1036 (*tty->device.write)(tty->minor, 1035 1036 1037 (void *)&(tty->termios.c_cc[VSTART]), 1038 1); 1037 1039 } 1038 1040 else if (tty->flow_ctrl & FL_MDRTS) { … … 1216 1218 tty->flow_ctrl |= FL_ISNTXOF; 1217 1219 (*tty->device.write)(tty->minor, 1218 1219 1220 (void *)&(tty->termios.c_cc[VSTOP]), 1221 1); 1220 1222 } 1221 1223 } … … 1271 1273 /* XOFF should be sent now... */ 1272 1274 (*tty->device.write)(tty->minor, 1273 &(tty->termios.c_cc[VSTOP]), 1);1275 (void *)&(tty->termios.c_cc[VSTOP]), 1); 1274 1276 1275 1277 rtems_interrupt_disable(level); … … 1291 1293 */ 1292 1294 (*tty->device.write)(tty->minor, 1293 &(tty->termios.c_cc[VSTART]), 1);1295 (void *)&(tty->termios.c_cc[VSTART]), 1); 1294 1296 1295 1297 rtems_interrupt_disable(level);
Note: See TracChangeset
for help on using the changeset viewer.