]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_GCC/freedom-metal/doc/sphinx/devguide/tty.rst
c94135174867e522a63b06a13a1778a460ffe289
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_GCC / freedom-metal / doc / sphinx / devguide / tty.rst
1 Standard I/O
2 ============
3
4 Freedom Metal integrates with libc ``STDOUT`` to provide virtual terminal support.
5 The default ``STDOUT`` device is the first UART serial peripheral on the target.
6 If no UART serial peripheral is present, such as in the case of SiFive CoreIP
7 test harnesses, then the bytes sent to ``STDOUT`` are dropped.
8
9 Hello World
10 -----------
11
12 Using the virtual terminal with Freedom Metal is exactly what you might expect:
13
14 .. code-block:: C
15    :linenos:
16
17    #include <stdio.h>
18
19    int main(void) {
20       printf("Hello, world!");
21
22       return 0;
23    }
24