From 8a1857be334d4eeb519b93395d7fc3196e847a16 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 8 Nov 2015 08:45:19 +0000 Subject: I2S driver for SPIv2. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8442 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/STM32/RT-STM32F042K6-NUCLEO32/mcuconf.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'demos/STM32/RT-STM32F042K6-NUCLEO32') diff --git a/demos/STM32/RT-STM32F042K6-NUCLEO32/mcuconf.h b/demos/STM32/RT-STM32F042K6-NUCLEO32/mcuconf.h index c29f07510..62486d29d 100644 --- a/demos/STM32/RT-STM32F042K6-NUCLEO32/mcuconf.h +++ b/demos/STM32/RT-STM32F042K6-NUCLEO32/mcuconf.h @@ -103,6 +103,18 @@ #define STM32_I2C_I2C1_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 2) #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. */ -- cgit v1.2.3