hal: nrf51 spi1 fix
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/f42bc724 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/f42bc724 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/f42bc724 Branch: refs/heads/bluetooth5 Commit: f42bc724c0218d31f58bf6ce9ca1bd68551948d5 Parents: cb23f34 Author: Jacob Rosenthal <[email protected]> Authored: Tue May 9 20:53:32 2017 -0700 Committer: Jacob Rosenthal <[email protected]> Committed: Tue May 9 20:53:32 2017 -0700 ---------------------------------------------------------------------- hw/mcu/nordic/nrf51xxx/src/hal_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/f42bc724/hw/mcu/nordic/nrf51xxx/src/hal_spi.c ---------------------------------------------------------------------- diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_spi.c b/hw/mcu/nordic/nrf51xxx/src/hal_spi.c index 21ae640..ab88ae3 100644 --- a/hw/mcu/nordic/nrf51xxx/src/hal_spi.c +++ b/hw/mcu/nordic/nrf51xxx/src/hal_spi.c @@ -512,7 +512,7 @@ hal_spi_init(int spi_num, void *cfg, uint8_t spi_type) irq_handler = nrf51_spi1_irq_handler; if (spi_type == HAL_SPI_TYPE_MASTER) { #if MYNEWT_VAL(SPI_1_MASTER) - spi->nhs_spi.spim = NRF_SPIM1; + spi->nhs_spi.spim = NRF_SPI1; #else assert(0); #endif
