summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-28 09:11:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-28 09:12:32 +0200
commit647bfdd728497703176102b907ad419a650b2c6b (patch)
tree1a81d3f915fcadf8056a325b9ec48a10fb9cf4b3
parentuser: Add migration hints from old build system (diff)
downloadrtems-docs-647bfdd728497703176102b907ad419a650b2c6b.tar.bz2
c-user: Fix use of getchark() and rtems_putc()
-rw-r--r--c-user/config/device-driver.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/c-user/config/device-driver.rst b/c-user/config/device-driver.rst
index 16d92b0..f23e8a3 100644
--- a/c-user/config/device-driver.rst
+++ b/c-user/config/device-driver.rst
@@ -318,9 +318,9 @@ NOTES:
device file. This device is used to initialize the standard input, output,
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
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,
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
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
non-blocking and may be called from interrupt context. A dedicated task
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.
Use ``fsync( STDOUT_FILENO )`` or ``fdatasync( STDOUT_FILENO )`` to drain the