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 <[email protected]> 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.
