aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-08-07 12:50:51 +0200
committerGitHub <noreply@github.com>2019-08-07 12:50:51 +0200
commit2ef3184e62ebae2c627ff938cd0b649dbe72da2e (patch)
tree7d022019a801230104e7ecaacba8f86810e3c2bb
parent62161f8106b99a705d0f7ce59c4e4f3e9249aad5 (diff)
parent9b5eba54fb0789b31e967582ab55a307af821b08 (diff)
downloadChibiOS-Contrib-2ef3184e62ebae2c627ff938cd0b649dbe72da2e.tar.gz
ChibiOS-Contrib-2ef3184e62ebae2c627ff938cd0b649dbe72da2e.tar.bz2
ChibiOS-Contrib-2ef3184e62ebae2c627ff938cd0b649dbe72da2e.zip
Merge pull request #193 from fabio-d/nrf52-spi
NRF: Make the SPI driver compile on NRF52 too
-rw-r--r--os/hal/ports/NRF5/LLD/SPIv1/hal_spi_lld.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/NRF5/LLD/SPIv1/hal_spi_lld.c b/os/hal/ports/NRF5/LLD/SPIv1/hal_spi_lld.c
index 95bb9b7..3e0bc83 100644
--- a/os/hal/ports/NRF5/LLD/SPIv1/hal_spi_lld.c
+++ b/os/hal/ports/NRF5/LLD/SPIv1/hal_spi_lld.c
@@ -26,6 +26,11 @@
#if HAL_USE_SPI || defined(__DOXYGEN__)
+#if NRF_SERIES == 52
+#define SPI0_TWI0_IRQn SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn
+#define SPI1_TWI1_IRQn SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn
+#endif
+
/*===========================================================================*/
/* Driver exported variables. */
/*===========================================================================*/