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 2018/12/06 19:42:28 UTC
[mynewt-core] 01/03: fe310: Add hal_spi_init_hw function
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
commit b5801154e923509de7316aef4323a9c7237c35a2
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Thu Dec 6 15:42:55 2018 +0100
fe310: Add hal_spi_init_hw function
Recently added function needed for bus driver support.
---
hw/mcu/sifive/fe310/src/hal_spi.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/hw/mcu/sifive/fe310/src/hal_spi.c b/hw/mcu/sifive/fe310/src/hal_spi.c
index 09f0fa6..5f13edb 100644
--- a/hw/mcu/sifive/fe310/src/hal_spi.c
+++ b/hw/mcu/sifive/fe310/src/hal_spi.c
@@ -172,6 +172,13 @@ err:
return (rc);
}
+int
+hal_spi_init_hw(uint8_t spi_num, uint8_t spi_type,
+ const struct hal_spi_hw_settings *cfg)
+{
+ return hal_spi_init(spi_num, NULL, spi_type);
+}
+
/**
* Sets the txrx callback (executed at interrupt context) when the
* buffer is transferred by the master or the slave using the non-blocking API.