aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-03 13:19:56 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-03-03 13:19:56 +0000
commit8c4653a41374ecac0b50b874e1e0203de8d28487 (patch)
tree31491a221b6bffa13c805666e637f184afeb32c3 /os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h
parent5599a0f0c36b23f3428c0d53df52d62c09284cfb (diff)
downloadChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.tar.gz
ChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.tar.bz2
ChibiOS-8c4653a41374ecac0b50b874e1e0203de8d28487.zip
I2S driver (over SPIv1) finished but untested.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6748 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h')
-rw-r--r--os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h10
1 files changed, 10 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 ac1ff3d15..5c2fb1c32 100644
--- a/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h
+++ b/os/hal/ports/STM32/LLD/SPIv1/i2s_lld.h
@@ -134,6 +134,16 @@
/* Derived constants and error checks. */
/*===========================================================================*/
+#if STM32_I2S_RX_ENABLED(STM32_I2S_SPI2_MODE) && \
+ STM32_I2S_TX_ENABLED(STM32_I2S_SPI2_MODE)
+#error "I2S2 RX and TX mode not supported in this driver implementation"
+#endif
+
+#if STM32_I2S_RX_ENABLED(STM32_I2S_SPI3_MODE) && \
+ STM32_I2S_TX_ENABLED(STM32_I2S_SPI3_MODE)
+#error "I2S3 RX and TX mode not supported in this driver implementation"
+#endif
+
#if STM32_I2S_USE_SPI2 && !STM32_HAS_SPI2
#error "SPI2 not present in the selected device"
#endif