aboutsummaryrefslogtreecommitdiffstats
path: root/demos/STM32/RT-STM32F031K6-NUCLEO32
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2015-11-08 08:45:19 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2015-11-08 08:45:19 +0000
commit8a1857be334d4eeb519b93395d7fc3196e847a16 (patch)
tree9f07f5bec1d8fe646cd369ec03c930da7dbcd63b /demos/STM32/RT-STM32F031K6-NUCLEO32
parentcbe59ed8348a1c9275463439bbe23030bd72d3bf (diff)
downloadChibiOS-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 'demos/STM32/RT-STM32F031K6-NUCLEO32')
-rw-r--r--demos/STM32/RT-STM32F031K6-NUCLEO32/mcuconf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/demos/STM32/RT-STM32F031K6-NUCLEO32/mcuconf.h b/demos/STM32/RT-STM32F031K6-NUCLEO32/mcuconf.h
index aab10219b..796844730 100644
--- a/demos/STM32/RT-STM32F031K6-NUCLEO32/mcuconf.h
+++ b/demos/STM32/RT-STM32F031K6-NUCLEO32/mcuconf.h
@@ -104,6 +104,18 @@
#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
/*
+ * I2S driver system settings.
+ */
+#define STM32_I2S_USE_SPI1 FALSE
+#define STM32_I2S_SPI1_MODE (STM32_I2S_MODE_MASTER | \
+ STM32_I2S_MODE_RX)
+#define STM32_I2S_SPI1_IRQ_PRIORITY 2
+#define STM32_I2S_SPI1_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_DMA_ERROR_HOOK(i2sp) osalSysHalt("DMA failure")
+
+/*
* ICU driver system settings.
*/
#define STM32_ICU_USE_TIM1 FALSE