From eaf54ee27ae92ec66d7c787ee647e59abf05bd91 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 9 Nov 2015 10:42:36 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8456 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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"