This is an automated email from the ASF dual-hosted git repository.
janc 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 1d9fb67 hw/mcu/nordic: Fix HAL SPI to use MCU_TARGET instead of old
MCU_NRF52832
1d9fb67 is described below
commit 1d9fb67649e8beb5d032743fe2995af0722d8856
Author: Niklas Casaril <[email protected]>
AuthorDate: Fri Nov 8 18:41:42 2019 +1000
hw/mcu/nordic: Fix HAL SPI to use MCU_TARGET instead of old MCU_NRF52832
---
hw/mcu/nordic/nrf52xxx/src/hal_spi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
index 374209a..475832a 100644
--- a/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
+++ b/hw/mcu/nordic/nrf52xxx/src/hal_spi.c
@@ -1103,7 +1103,7 @@ hal_spi_txrx_noblock(int spi_num, void *txbuf, void
*rxbuf, int len)
goto err;
}
-#if MYNEWT_VAL(MCU_NRF52832)
+#if MYNEWT_VAL_CHOICE(MCU_TARGET, nRF52832)
/* There is a known issue in nRF52832 with sending 1 byte in SPIM mode that
* it clocks out additional byte. For this reason, let us use SPI mode
* for such a write