Console driver for Termios devices.
More...
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
Definition: deflate.c:114
Define the console_device_table and console_device_count in the console-config.c file of the BSP.
◆ console_device_probe
Console device probe function type.
- Parameters
-
[in] | context | The Termios device context. |
- Return values
-
true | Install this device. |
false | Otherwise. |
◆ 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
◆ 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.