You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2019/03/25 20:00:55 UTC
[mynewt-core] branch master updated: mcu/fe310: Adjust mcu to api
changes in bus driver
This is an automated email from the ASF dual-hosted git repository.
jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new e991262 mcu/fe310: Adjust mcu to api changes in bus driver
e991262 is described below
commit e9912627d5e3601fbe9fe14e7d1f185eb9790ddb
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Mon Mar 25 09:20:55 2019 +0100
mcu/fe310: Adjust mcu to api changes in bus driver
Argument change in function bus_spi_hal_dev_create() for asynchronous
spi handling.
This simply changes old type of argument to new one.
---
hw/mcu/sifive/fe310/src/fe310_periph.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mcu/sifive/fe310/src/fe310_periph.c b/hw/mcu/sifive/fe310/src/fe310_periph.c
index 79fedb3..7d46c25 100644
--- a/hw/mcu/sifive/fe310/src/fe310_periph.c
+++ b/hw/mcu/sifive/fe310/src/fe310_periph.c
@@ -60,10 +60,10 @@ static struct uart_dev os_bsp_uart0;
static const struct bus_spi_dev_cfg spi1_cfg = {
.spi_num = 1,
};
-static struct bus_spi_dev spi1_bus;
+static struct bus_spi_hal_dev spi1_bus;
#endif
#if MYNEWT_VAL(SPI_2)
-static const struct bus_spi_dev_cfg spi2_cfg = {
+static const struct bus_spi_hal_dev spi2_cfg = {
.spi_num = 2,
};
static struct bus_spi_dev spi2_bus;