diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-09 10:42:36 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-09 10:42:36 +0000 |
commit | eaf54ee27ae92ec66d7c787ee647e59abf05bd91 (patch) | |
tree | f7071840ee10e714c9679c97aba4c61e73bafe3b /os/hal/ports | |
parent | 28ae11aeace265a0a911d2f37ec8af695ca794a5 (diff) | |
download | ChibiOS-eaf54ee27ae92ec66d7c787ee647e59abf05bd91.tar.gz ChibiOS-eaf54ee27ae92ec66d7c787ee647e59abf05bd91.tar.bz2 ChibiOS-eaf54ee27ae92ec66d7c787ee647e59abf05bd91.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8456 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports')
-rw-r--r-- | os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h b/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h index 95ccf7bb2..179baca73 100644 --- a/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h +++ b/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h @@ -165,6 +165,18 @@ /* Derived constants and error checks. */
/*===========================================================================*/
+#if STM32_I2S_USE_SPI1 && !STM32_SPI1_SUPPORTS_I2S
+#error "SPI1 does not support I2S mode"
+#endif
+
+#if STM32_I2S_USE_SPI2 && !STM32_SPI2_SUPPORTS_I2S
+#error "SPI2 does not support I2S mode"
+#endif
+
+#if STM32_I2S_USE_SPI3 && !STM32_SPI3_SUPPORTS_I2S
+#error "SPI3 does not support I2S mode"
+#endif
+
#if STM32_I2S_RX_ENABLED(STM32_I2S_SPI1_MODE) && \
STM32_I2S_TX_ENABLED(STM32_I2S_SPI1_MODE)
#error "I2S1 RX and TX mode not supported in this driver implementation"
|