RTEMS Logo

RTEMS 4.7.2 On-Line Library


Console Driver Changing Serial Line Parameters

PREV UP next Bookshelf BSP and Device Driver Development Guide

8.4.8: Changing Serial Line Parameters

The console_control is invoked when the line parameters for a particular serial device are to be changed. This entry point corresponds to the device driver io_control entry point.

The application write is able to control the serial line configuration with Termios calls (such as the ioctl command, see the Termios documentation for more details). If the driver is to support dynamic configuration, then is must have the console_control piece of code. Refer to the gen68340 BSP for an example of how it is done. Basically ioctl commands call console_control with the serial line configuration in a Termios defined data structure. The driver is responsible for reinitializing the UART with the correct settings.


PREV UP next Bookshelf BSP and Device Driver Development Guide

Copyright © 1988-2004 OAR Corporation