RTEMS Logo

RTEMS 4.6.1 On-Line Library


Console Driver pollWrite

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

8.4.1.1: pollWrite

The pollWrite routine is responsible for writing len characters from buf to the serial device specified by minor.

int pollWrite (int minor, const char *buf, int len)
{
  for (i=0; i<len; i++) {
     put buf[i] into the UART channel minor
     wait for the character to be transmitted
     on the serial line
  }
  return 0
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation