BSP and Device Driver Development Guide
The console_open
function is called whenever a serial
device is opened. The device registered as "/dev/console"
is opened automatically during RTEMS initialization.
For instance, if UART channel 2 is registered as "/dev/tty1",
the console_open
entry point will be called as
the result of an fopen("/dev/tty1", mode)
in the
application.
The console_open
function has to inform Termios of the low-level
functions for serial line support; the "callbacks".
The gen68340 BSP defines two sets of callback tables:
This code can be found in the file $BSPROOT/console/console.c
.
BSP and Device Driver Development Guide
Copyright © 1988-2007OAR Corporation