mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-04 18:37:52 +08:00
c-user: Fix use of getchark() and rtems_putc()
This commit is contained in:
parent
2fb86e27ce
commit
647bfdd728
@ -318,9 +318,9 @@ NOTES:
|
|||||||
device file. This device is used to initialize the standard input, output,
|
device file. This device is used to initialize the standard input, output,
|
||||||
and error file descriptors.
|
and error file descriptors.
|
||||||
|
|
||||||
This device driver reads via :c:func:`rtems_putc`.
|
This device driver reads via :c:func:`getchark`.
|
||||||
|
|
||||||
This device driver writes via :c:func:`getchark`.
|
This device driver writes via :c:func:`rtems_putc`.
|
||||||
|
|
||||||
The Termios framework is not used. There is no support to change device
|
The Termios framework is not used. There is no support to change device
|
||||||
settings, e.g. baud, stop bits, parity, etc.
|
settings, e.g. baud, stop bits, parity, etc.
|
||||||
@ -361,14 +361,14 @@ NOTES:
|
|||||||
device file. This device is used to initialize the standard input, output,
|
device file. This device is used to initialize the standard input, output,
|
||||||
and error file descriptors.
|
and error file descriptors.
|
||||||
|
|
||||||
This device driver reads via :c:func:`rtems_putc`.
|
This device driver reads via :c:func:`getchark`.
|
||||||
|
|
||||||
This device driver writes into a write buffer. The count of characters
|
This device driver writes into a write buffer. The count of characters
|
||||||
written into the write buffer is returned. It might be less than the
|
written into the write buffer is returned. It might be less than the
|
||||||
requested count, in case the write buffer is full. The write is
|
requested count, in case the write buffer is full. The write is
|
||||||
non-blocking and may be called from interrupt context. A dedicated task
|
non-blocking and may be called from interrupt context. A dedicated task
|
||||||
reads from the write buffer and outputs the characters via
|
reads from the write buffer and outputs the characters via
|
||||||
:c:func:`getchark`. This task runs with the least important priority.
|
:c:func:`rtems_putc`. This task runs with the least important priority.
|
||||||
The write buffer size is 2047 characters and it is not configurable.
|
The write buffer size is 2047 characters and it is not configurable.
|
||||||
|
|
||||||
Use ``fsync( STDOUT_FILENO )`` or ``fdatasync( STDOUT_FILENO )`` to drain the
|
Use ``fsync( STDOUT_FILENO )`` or ``fdatasync( STDOUT_FILENO )`` to drain the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user