This is an automated email from the ASF dual-hosted git repository. vipulrahane 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 2f52b9f mcu/nrf5340: Fix spi device names new 88323a5 Merge pull request #2540 from vikrant-proxy/nrf53/spi-periph-fix 2f52b9f is described below commit 2f52b9fe4377c1bb0159b32bdfa384272d7db0d7 Author: Vikrant More <vikr...@proxy.com> AuthorDate: Thu Mar 18 23:36:28 2021 -0700 mcu/nrf5340: Fix spi device names --- hw/mcu/nordic/nrf5340/src/hal_spi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/mcu/nordic/nrf5340/src/hal_spi.c b/hw/mcu/nordic/nrf5340/src/hal_spi.c index 81e5464..ded7bc6 100644 --- a/hw/mcu/nordic/nrf5340/src/hal_spi.c +++ b/hw/mcu/nordic/nrf5340/src/hal_spi.c @@ -294,7 +294,7 @@ nrf5340_spi3_irq_handler(void) { os_trace_isr_enter(); if (nrf5340_hal_spi3.spi_type == HAL_SPI_TYPE_MASTER) { -#if MYNEWT_VAL(SPI_2_MASTER) +#if MYNEWT_VAL(SPI_3_MASTER) nrf5340_irqm_handler(&nrf5340_hal_spi3); #endif } else { @@ -311,8 +311,8 @@ void nrf5340_spi4_irq_handler(void) { os_trace_isr_enter(); - if (nrf5340_hal_spi3.spi_type == HAL_SPI_TYPE_MASTER) { - nrf5340_irqm_handler(&nrf5340_hal_spi3); + if (nrf5340_hal_spi4.spi_type == HAL_SPI_TYPE_MASTER) { + nrf5340_irqm_handler(&nrf5340_hal_spi4); } os_trace_isr_exit(); }