summaryrefslogtreecommitdiffstats
path: root/c-user/kernel-character-io/introduction.rst
blob: ef3512b18d4c6edba09eea0383dfeaebf6a02909 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.. SPDX-License-Identifier: CC-BY-SA-4.0

.. Copyright (C) 2020, 2021 embedded brains GmbH (http://www.embedded-brains.de)
.. Copyright (C) 2015 On-Line Applications Research Corporation (OAR)

.. This file is part of the RTEMS quality process and was automatically
.. generated.  If you find something that needs to be fixed or
.. worded better please post a report or patch to an RTEMS mailing list
.. or raise a bug report:
..
.. https://www.rtems.org/bugs.html
..
.. For information on updating and regenerating please refer to the How-To
.. section in the Software Requirements Engineering chapter of the
.. RTEMS Software Engineering manual.  The manual is provided as a part of
.. a release.  For development sources please refer to the online
.. documentation at:
..
.. https://docs.rtems.org

.. Generated from spec:/rtems/io/if/group-3

.. _KernelCharacterIOSupportIntroduction:

Introduction
============

.. The following list was generated from:
.. spec:/rtems/io/if/putc
.. spec:/rtems/io/if/put-char
.. spec:/rtems/io/if/putk
.. spec:/rtems/io/if/printk
.. spec:/rtems/io/if/vprintk
.. spec:/rtems/io/if/printk-printer
.. spec:/rtems/io/if/getchark

The kernel character input/output support is an extension of the
:ref:`RTEMSAPIClassicIO` to output characters to the kernel character output
device and receive characters from the kernel character input device using a
polled and non-blocking implementation.

The directives may be used to print debug and test information.  The kernel
character input/output support should work even if no Console Driver is
configured, see :ref:`CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER`.  The kernel
character input and output device is provided by the :term:`BSP`. Applications
may change the device. The directives provided by the Kernel Character I/O
Support are:

* :ref:`InterfaceRtemsPutc` - Outputs the character to the kernel character
  output device.

* :ref:`InterfaceRtemsPutChar` - Puts the character using
  :ref:`InterfaceRtemsPutc`

* :ref:`InterfacePutk` - Outputs the characters of the string and a newline
  character to the kernel character output device.

* :ref:`InterfacePrintk` - Outputs the characters defined by the format string
  and the arguments to the kernel character output device.

* :ref:`InterfaceVprintk` - Outputs the characters defined by the format string
  and the variable argument list to the kernel character output device.

* :ref:`InterfaceRtemsPrintkPrinter` - Outputs the characters defined by the
  format string and the variable argument list to the kernel character output
  device.

* :ref:`InterfaceGetchark` - Tries to dequeue a character from the kernel
  character input device.