]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_GCC/freedom-metal/src/uart.c
Add nano-specs linker option to HiFive1_GCC demo.
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_GCC / 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, 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);