RTEMS Logo

RTEMS 4.6.1 On-Line Library


Console Driver Opening a serial device

PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

8.4.4: Opening a serial device

  • Console Driver Polled I/O
  • Console Driver Interrupt Driven I/O
  • 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.


    PREV UP NEXT Bookshelf BSP and Device Driver Development Guide

    Copyright © 1988-2004 OAR Corporation