]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/freedom-metal/metal/drivers/riscv_clint0.h
08d571e1c82208dd4e8db3c48dcba1fcbd1a5042
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1_FreedomStudio / freedom-metal / metal / drivers / riscv_clint0.h
1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
3
4 #ifndef METAL__DRIVERS__RISCV_CLINT0_H
5 #define METAL__DRIVERS__RISCV_CLINT0_H
6
7 #include <metal/compiler.h>
8 #include <metal/drivers/riscv_cpu.h>
9
10 struct __metal_driver_vtable_riscv_clint0 {
11     struct metal_interrupt_vtable clint_vtable;
12 };
13
14 __METAL_DECLARE_VTABLE(__metal_driver_vtable_riscv_clint0)
15
16 #define __METAL_MACHINE_MACROS
17 #include <metal/machine.h>
18 struct __metal_driver_riscv_clint0 {
19     struct metal_interrupt controller;
20     int init_done;
21 };
22 #undef __METAL_MACHINE_MACROS
23
24 #endif