The driver initialization is called once during the RTEMS initialization
process.
The console_initialize function has to:
initialize Termios support: call rtems_termios_initialize(). If
Termios has already been initialized by another device driver, then
this call will have no effect.
Initialize the UART: This procedure should
be described in the UART manual. This procedure MUST be
followed precisely. This procedure varies but
usually consists of:
reinitialize the UART channels
set the channels configuration to the Termios default:
9600 bauds, no parity, 1 stop bit, and 8 bits per character
If interrupt driven, register the console interrupt routine to RTEMS:
register the device name: in order to use the console (i.e. being
able to do printf/scanf on stdin, stdout, and stderr), some device
must be registered as "/dev/console":