BSP and Device Driver Development Guide
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.
BSP and Device Driver Development Guide
Copyright © 1988-2000 OAR Corporation