]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/metal/drivers/sifive_uart0.h
Update RISCC-V-RV32-SiFive_HiFive1_FreedomStudio project to latest tools and metal...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_FreedomStudio / freedom-metal / metal / drivers / sifive_uart0.h
1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
3
4 #ifndef METAL__DRIVERS__SIFIVE_UART0_H
5 #define METAL__DRIVERS__SIFIVE_UART0_H
6
7 #include <metal/drivers/sifive_gpio0.h>
8 #include <metal/drivers/riscv_plic0.h>
9 #include <metal/clock.h>
10 #include <metal/io.h>
11 #include <metal/uart.h>
12 #include <metal/compiler.h>
13
14 struct __metal_driver_vtable_sifive_uart0 {
15     const struct metal_uart_vtable uart;
16 };
17
18 struct __metal_driver_sifive_uart0;
19
20 __METAL_DECLARE_VTABLE(__metal_driver_vtable_sifive_uart0)
21
22 struct __metal_driver_sifive_uart0 {
23     struct metal_uart uart;
24     unsigned long baud_rate;
25     metal_clock_callback pre_rate_change_callback;
26     metal_clock_callback post_rate_change_callback;
27 };
28
29
30 #endif