aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio D'Urso <fabiodurso@hotmail.it>2019-07-23 01:02:52 +0200
committerFabio D'Urso <fabiodurso@hotmail.it>2019-08-06 00:48:31 +0200
commit9b5eba54fb0789b31e967582ab55a307af821b08 (patch)
tree7d022019a801230104e7ecaacba8f86810e3c2bb
parent62161f8106b99a705d0f7ce59c4e4f3e9249aad5 (diff)
downloadChibiOS-Contrib-9b5eba54fb0789b31e967582ab55a307af821b08.tar.gz
ChibiOS-Contrib-9b5eba54fb0789b31e967582ab55a307af821b08.tar.bz2
ChibiOS-Contrib-9b5eba54fb0789b31e967582ab55a307af821b08.zip
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. */
/*===========================================================================*/