RTEMS  5.1
Data Structures | Typedefs | Functions | Variables

Console driver for Termios devices. More...

Data Structures

struct  console_device
 Console device information. More...
 

Typedefs

typedef bool(* console_device_probe) (rtems_termios_device_context *context)
 Console device probe function type. More...
 

Functions

bool console_device_probe_default (rtems_termios_device_context *context)
 Returns true and does nothing else.
 

Variables

const char * console_device::device_file
 The device file path. More...
 
console_device_probe console_device::probe
 The device probe function.
 
const rtems_termios_device_handlerconsole_device::handler
 The Termios device handler.
 
const rtems_termios_device_flowconsole_device::flow
 The Termios device flow control handler.
 
rtems_termios_device_contextconsole_device::context
 The Termios device context.
 
const console_device console_device_table []
 Table for console devices installed via console_initialize() during system initialization. More...
 
const size_t console_device_count
 Count of entries in the console_device_table. More...
 

Detailed Description

Console driver for Termios devices.

In order to use this driver add the following lines to the Makefile.am of the BSP:

libbsp_a_SOURCES += ../../shared/console-termios-init.c
libbsp_a_SOURCES += ../../shared/console-termios.c
libbsp_a_SOURCES += console/console-config.c

Define the console_device_table and console_device_count in the console-config.c file of the BSP.

Typedef Documentation

◆ console_device_probe

typedef bool(* console_device_probe) (rtems_termios_device_context *context)

Console device probe function type.

Parameters
[in]contextThe Termios device context.
Return values
trueInstall this device.
falseOtherwise.

Variable Documentation

◆ console_device_count

const size_t console_device_count

Count of entries in the console_device_table.

It must be provided by the BSP.

◆ console_device_table

const console_device console_device_table[]

Table for console devices installed via console_initialize() during system initialization.

It must be provided by the BSP.

See also
console_device_count.

◆ device_file

const char* console_device::device_file

The device file path.

The "/dev/console" device will be automatically installed as the first device of console_device_table with a successful probe.