summaryrefslogtreecommitdiff
path: root/FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1_FreedomStudio/bsp/install/include/metal/drivers/sifive_gpio-switches.h
blob: c9c7839e9b0b843be1c9f8b471011a2c15408b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright 2018 SiFive, Inc */
/* SPDX-License-Identifier: Apache-2.0 */

#ifndef METAL__DRIVERS__SIFIVE_GPIO_SWITCHES_H
#define METAL__DRIVERS__SIFIVE_GPIO_SWITCHES_H

#include <metal/drivers/sifive_gpio0.h>
#include <metal/switch.h>
#include <metal/compiler.h>

struct __metal_driver_vtable_sifive_switch {
  struct metal_switch_vtable switch_vtable;
};

__METAL_DECLARE_VTABLE(__metal_driver_vtable_sifive_switch)

struct __metal_driver_sifive_gpio_switch {
    struct metal_switch flip;
};

#endif