1 /* Copyright 2018 SiFive, Inc */
2 /* SPDX-License-Identifier: Apache-2.0 */
4 #ifndef METAL__DRIVERS__SIFIVE_SPI0_H
5 #define METAL__DRIVERS__SIFIVE_SPI0_H
7 #include <metal/drivers/sifive_gpio0.h>
8 #include <metal/clock.h>
9 #include <metal/compiler.h>
11 #include <metal/spi.h>
13 struct __metal_driver_vtable_sifive_spi0 {
14 const struct metal_spi_vtable spi;
17 __METAL_DECLARE_VTABLE(__metal_driver_vtable_sifive_spi0)
19 struct __metal_driver_sifive_spi0 {
21 unsigned long baud_rate;