From 647bfdd728497703176102b907ad419a650b2c6b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 28 Sep 2020 09:11:03 +0200 Subject: c-user: Fix use of getchark() and rtems_putc() --- c-user/config/device-driver.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c-user/config/device-driver.rst') 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 -- cgit v1.2.3