blob: c97a16b57fa25e654b9dab1e112ef233a9ce34c2 [file] [log] [blame]
Armando Montanezd2e49032019-12-06 13:06:01 -08001.. _chapter-pw-dumb-io-stdio:
2
3.. default-domain:: cpp
4
5.. highlight:: sh
6
7----------------
8pw_dumb_io_stdio
9----------------
10The ``pw_dumb_io_stdio`` backend implements the ``pw_dumb_io`` facade using
11stdio.
12
13Why not just use stdio directly?
14--------------------------------
15
16The nice thing about using ``pw_dumb_io`` is that it's rather easy to get a
17board up and running with a target-specific backend. This means when drafting
18out a quick application you can write it against ``pw_dumb_io`` and, with some
19care, the application will be able to run on both host and target devices.
20
21While it's not recommended to use ``pw_dumb_io`` for any production
22applications, it can be rather helpful for early prototyping.
23
24Setup
25=====
26This module requires relatively minimal setup:
27
28 1. Write code against the ``pw_dumb_io`` facade.
29 2. Specify the ``dir_pw_dumb_io_backend`` GN global variable to point to this
30 backend.
31
32Module usage
33============
34For the most part, applications built with this backend will behave similarly
35to an application built directly against stdio.
36
37Dependencies
38============
39 * pw_dumb_io facade