RTEMS Logo

RTEMS 4.9.2 On-Line Library


Console Driver Reading Characters from a Serial Device

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

8.4.7: Reading Characters from a Serial Device

The console_read is invoked when the serial device is to be read from. This entry point corresponds to the device driver read entry point.

This routine is responsible for returning the content of the Termios input buffer. This is done by invoking the rtems_termios_read routine.

rtems_device_driver console_read(
    rtems_device_major_number major,
    rtems_device_minor_number minor,
    void *arg
)
{
    return rtems_termios_read(arg);
}


PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2008 OAR Corporation