1 | SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | active: true |
---|
3 | appl-config-option-data-type: | |
---|
4 | Boolean feature macro. |
---|
5 | appl-config-option-default-value: | |
---|
6 | This is not defined by default. |
---|
7 | appl-config-option-description: | |
---|
8 | ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` is defined if |
---|
9 | the application wishes to include the Simple Task Console Device Driver. |
---|
10 | appl-config-option-index: [] |
---|
11 | appl-config-option-name: CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER |
---|
12 | appl-config-option-notes: | |
---|
13 | This device driver is responsible for providing the :file:`/dev/console` |
---|
14 | device file. This device is used to initialize the standard input, output, |
---|
15 | and error file descriptors. |
---|
16 | |
---|
17 | This device driver reads via ``getchark()``. |
---|
18 | |
---|
19 | This device driver writes into a write buffer. The count of characters |
---|
20 | written into the write buffer is returned. It might be less than the |
---|
21 | requested count, in case the write buffer is full. The write is |
---|
22 | non-blocking and may be called from interrupt context. A dedicated task |
---|
23 | reads from the write buffer and outputs the characters via |
---|
24 | ``rtems_putc()``. This task runs with the least important priority. The |
---|
25 | write buffer size is 2047 characters and it is not configurable. |
---|
26 | |
---|
27 | Use ``fsync(STDOUT_FILENO)`` or ``fdatasync(STDOUT_FILENO)`` to drain the |
---|
28 | write buffer. |
---|
29 | |
---|
30 | The Termios framework is not used. There is no support to change device |
---|
31 | settings, e.g. baud, stop bits, parity, etc. |
---|
32 | |
---|
33 | The |
---|
34 | |
---|
35 | * ``CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER``, |
---|
36 | |
---|
37 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER``, and |
---|
38 | |
---|
39 | * ``CONFIGURE_APPLICATION_NEEDS_SIMPLE_TASK_CONSOLE_DRIVER`` |
---|
40 | |
---|
41 | configuration options are mutually exclusive. |
---|
42 | appl-config-option-range: | |
---|
43 | Defined or undefined. |
---|
44 | copyrights: |
---|
45 | - Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR) |
---|
46 | derived: false |
---|
47 | enabled-by: [] |
---|
48 | header: '' |
---|
49 | interface-type: appl-config-option |
---|
50 | level: '1.40' |
---|
51 | links: |
---|
52 | - RTEMS-ACFG-DEVDRV: 75G0LF6n2XEdjSX-qN_FPap1vl0feYAa0HTSDWPm6-8= |
---|
53 | normative: true |
---|
54 | ref: '' |
---|
55 | reviewed: N-CV1Km7BOdv7hv_JgySEVM6bkfMVO61kWv3WcSotYE= |
---|
56 | text: '' |
---|
57 | type: interface |
---|