1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
4 #include <metal/uart.h>
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, unsigned char c);
8 extern inline int metal_uart_getc(struct metal_uart *uart, unsigned char *c);
9 extern inline int metal_uart_get_baud_rate(struct metal_uart *uart);
10 extern inline int metal_uart_set_baud_rate(struct metal_uart *uart, int baud_rate);