]> begriffs open source - cmsis-freertos/blob - Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/metal/drivers/riscv_clint0.h
Updated pack to FreeRTOS 10.4.4
[cmsis-freertos] / Demo / RISC-V_RV32_SiFive_HiFive1-RevB_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 int __metal_driver_riscv_clint0_command_request(
25     struct metal_interrupt *controller, int command, void *data);
26
27 #endif