]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/src/uart.c
Update RISCC-V-RV32-SiFive_HiFive1_FreedomStudio project to latest tools and metal...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_FreedomStudio / freedom-metal / src / uart.c
1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
3
4 #include <metal/uart.h>
5
6 extern __inline__ void metal_uart_init(struct metal_uart *uart, int baud_rate);
7 extern __inline__ int metal_uart_putc(struct metal_uart *uart, int c);
8 extern __inline__ int metal_uart_txready(struct metal_uart *uart);
9 extern __inline__ int metal_uart_getc(struct metal_uart *uart, int *c);
10 extern __inline__ int metal_uart_get_baud_rate(struct metal_uart *uart);
11 extern __inline__ int metal_uart_set_baud_rate(struct metal_uart *uart, int baud_rate);