aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-18 11:16:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-03-18 11:16:08 +0000
commit470b447644555caaa62910d7f19da1804f81b464 (patch)
treee029f81786bda87569e409a423e300fb4560ee0b
parent4c86c8a06ac9291d99befe5af4388927324a9b56 (diff)
downloadChibiOS-470b447644555caaa62910d7f19da1804f81b464.tar.gz
ChibiOS-470b447644555caaa62910d7f19da1804f81b464.tar.bz2
ChibiOS-470b447644555caaa62910d7f19da1804f81b464.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4049 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/hal/platforms/STM32/i2s_lld.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/os/hal/platforms/STM32/i2s_lld.h b/os/hal/platforms/STM32/i2s_lld.h
index 3cd9d8b34..a2870419d 100644
--- a/os/hal/platforms/STM32/i2s_lld.h
+++ b/os/hal/platforms/STM32/i2s_lld.h
@@ -146,12 +146,12 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if STM32_I2S_USE_I2S2 && !STM32_HAS_I2S2
-#error "I2S2 not present in the selected device"
+#if STM32_I2S_USE_I2S2 && !STM32_HAS_SPI2
+#error "SPI2 not present in the selected device"
#endif
-#if STM32_I2S_USE_I2S3 && !STM32_HAS_I2S3
-#error "I2S3 not present in the selected device"
+#if STM32_I2S_USE_I2S3 && !STM32_HAS_SPI3
+#error "SPI3 not present in the selected device"
#endif
#if !STM32_I2S_USE_I2S2 && !STM32_I2S_USE_I2S3
@@ -159,22 +159,22 @@
#endif
#if STM32_I2S_USE_I2S2 && \
- !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S2_RX_DMA_STREAM, STM32_I2S2_RX_DMA_MSK)
+ !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S2_RX_DMA_STREAM, STM32_SPI2_RX_DMA_MSK)
#error "invalid DMA stream associated to I2S2 RX"
#endif
#if STM32_I2S_USE_I2S2 && \
- !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S2_TX_DMA_STREAM, STM32_I2S2_TX_DMA_MSK)
+ !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S2_TX_DMA_STREAM, STM32_SPI2_TX_DMA_MSK)
#error "invalid DMA stream associated to I2S2 TX"
#endif
#if STM32_I2S_USE_I2S3 && \
- !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S3_RX_DMA_STREAM, STM32_I2S3_RX_DMA_MSK)
+ !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S3_RX_DMA_STREAM, STM32_SPI3_RX_DMA_MSK)
#error "invalid DMA stream associated to I2S3 RX"
#endif
#if STM32_I2S_USE_I2S3 && \
- !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S3_TX_DMA_STREAM, STM32_I2S3_TX_DMA_MSK)
+ !STM32_DMA_IS_VALID_ID(STM32_I2S_I2S3_TX_DMA_STREAM, STM32_SPI3_TX_DMA_MSK)
#error "invalid DMA stream associated to I2S3 TX"
#endif