RTEMS: Termios Console Driver

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
Termios Console Driver
Board Support Packages » Shared » Console Driver Support

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.

## 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.
console_device_probe | console_device::probe
| The device probe function.
const rtems_termios_device_handler * | console_device::handler
| The Termios device handler.
const rtems_termios_device_flow * | console_device::flow
| The Termios device flow control handler.
rtems_termios_device_context * | console_device::context
| The Termios device context.
const console_device | console_device_table []
| Table for console devices installed via console_initialize() during system initialization.
const size_t | console_device_count
| Count of entries in the console_device_table.

## 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
config_s
Definition: deflate.c:115

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] | context | The Termios device context.

Return values

  true | Install this device.
  false | Otherwise.

## Variable Documentation

## ◆ console_device_count

const size_t console_device_count
| extern

Count of entries in the console_device_table.

It must be provided by the BSP.

## ◆ console_device_table

const console_device console_device_table[]
| extern

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.