diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-08 08:45:19 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-11-08 08:45:19 +0000 |
commit | 8a1857be334d4eeb519b93395d7fc3196e847a16 (patch) | |
tree | 9f07f5bec1d8fe646cd369ec03c930da7dbcd63b /testhal/STM32/STM32F0xx/UART | |
parent | cbe59ed8348a1c9275463439bbe23030bd72d3bf (diff) | |
download | ChibiOS-8a1857be334d4eeb519b93395d7fc3196e847a16.tar.gz ChibiOS-8a1857be334d4eeb519b93395d7fc3196e847a16.tar.bz2 ChibiOS-8a1857be334d4eeb519b93395d7fc3196e847a16.zip |
I2S driver for SPIv2.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8442 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F0xx/UART')
-rw-r--r-- | testhal/STM32/STM32F0xx/UART/mcuconf.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F0xx/UART/mcuconf.h b/testhal/STM32/STM32F0xx/UART/mcuconf.h index 13568f1cf..2045c8dbd 100644 --- a/testhal/STM32/STM32F0xx/UART/mcuconf.h +++ b/testhal/STM32/STM32F0xx/UART/mcuconf.h @@ -109,6 +109,25 @@ #define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
/*
+ * I2S driver system settings.
+ */
+#define STM32_I2S_USE_SPI1 FALSE
+#define STM32_I2S_USE_SPI2 FALSE
+#define STM32_I2S_SPI1_MODE (STM32_I2S_MODE_MASTER | \
+ STM32_I2S_MODE_RX)
+#define STM32_I2S_SPI2_MODE (STM32_I2S_MODE_MASTER | \
+ STM32_I2S_MODE_RX)
+#define STM32_I2S_SPI1_IRQ_PRIORITY 2
+#define STM32_I2S_SPI2_IRQ_PRIORITY 2
+#define STM32_I2S_SPI1_DMA_PRIORITY 1
+#define STM32_I2S_SPI2_DMA_PRIORITY 1
+#define STM32_I2S_SPI1_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2)
+#define STM32_I2S_SPI1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 3)
+#define STM32_I2S_SPI2_RX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
+#define STM32_I2S_SPI2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 5)
+#define STM32_I2S_DMA_ERROR_HOOK(i2sp) osalSysHalt("DMA failure")
+
+/*
* ICU driver system settings.
*/
#define STM32_ICU_USE_TIM1 FALSE
|