summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_FreedomStudio/freedom-metal/metal/drivers/riscv_clint0.h
blob: 08d571e1c82208dd4e8db3c48dcba1fcbd1a5042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright 2018 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__RISCV_CLINT0_H
#define METAL__DRIVERS__RISCV_CLINT0_H

#include <metal/compiler.h>
#include <metal/drivers/riscv_cpu.h>

struct __metal_driver_vtable_riscv_clint0 {
    struct metal_interrupt_vtable clint_vtable;
};

__METAL_DECLARE_VTABLE(__metal_driver_vtable_riscv_clint0)

#define __METAL_MACHINE_MACROS
#include <metal/machine.h>
struct __metal_driver_riscv_clint0 {
    struct metal_interrupt controller;
    int init_done;
};
#undef __METAL_MACHINE_MACROS

#endif