RTEMS Logo

RTEMS 4.9.3 On-Line Library


Console Driver Writing Characters to a Serial Device

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

8.4.8: Writing Characters to a Serial Device

The console_write is invoked when the serial device is to be written to. This entry point corresponds to the device driver write entry point.

This routine is responsible for adding the requested characters to the Termios output queue for this device. This is done by calling the routine rtems_termios_write to add the characters at the end of the Termios output buffer.

rtems_device_driver console_write(
    rtems_device_major_number major,
    rtems_device_minor_number minor,
    void *arg
)
{
    return rtems_termios_write(arg);
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2008 OAR Corporation