]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_GCC/freedom-metal/metal/tty.h
Base project to replace existing Freedom Studio project using latest Freedom Studio...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_GCC / freedom-metal / metal / tty.h
1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
3
4 #ifndef METAL__TTY_H
5 #define METAL__TTY_H
6
7 /*!
8  * @file tty.h
9  * @brief API for emulated serial teriminals
10  */
11
12 /*!
13  * @brief Write a character to the default output device
14  *
15  * Write a character to the default output device, which for most
16  * targets is the UART serial port.
17  * 
18  * @param c The character to write to the terminal
19  * @return 0 on success, or -1 on failure.
20  */
21 int metal_tty_putc(unsigned char c);
22
23 #endif