[rtems-docs commit] c-user: Fix use of getchark() and rtems_putc()

Sebastian Huber sebh at rtems.org
Mon Sep 28 07:13:30 UTC 2020


Module:    rtems-docs
Branch:    master
Commit:    647bfdd728497703176102b907ad419a650b2c6b
Changeset: http://git.rtems.org/rtems-docs/commit/?id=647bfdd728497703176102b907ad419a650b2c6b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Sep 28 09:11:03 2020 +0200

c-user: Fix use of getchark() and rtems_putc()

---

 c-user/config/device-driver.rst | 8 ++++----
 1 file 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



More information about the vc mailing list